Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C++
- ------------------------------------------
- #include <iostream>
- void greet(char* name) {
- std::cout << "Hello, " << name << "!\n";
- }
- void print_something() {
- std::cout << "Something" << std::endl;
- }
- Nim
- ------------------------------------------
- {.compile: "greet.cpp".}
- proc greet(name: cstring) {.importcpp.}
- proc print_something*() {.importcpp.}
- greet("Woop")
- print_something()
Advertisement
Add Comment
Please, Sign In to add comment