| 31 | |
| 32 | #define REGISTER_FUNC(funcPtr, name, index) if(!nullcBindModuleFunction("std.string", (void(*)())NULLCString::funcPtr, name, index)) return false; |
| 33 | bool nullcInitStringModule() |
| 34 | { |
| 35 | REGISTER_FUNC(strstr, "strstr", 0); |
| 36 | REGISTER_FUNC(strchr, "strchr", 0); |
| 37 | REGISTER_FUNC(strcmp, "strcmp", 0); |
| 38 | |
| 39 | return true; |
| 40 | } |