| 14 | |
| 15 | |
| 16 | char* NativeFunc::create(const char* name, short lib_index) { |
| 17 | NativeFunc* f = (NativeFunc*)malloc(sizeof(NativeFunc) + 1 + strlen(name)); |
| 18 | f->_lib_index = lib_index; |
| 19 | f->_mark = 0; |
| 20 | return strcpy(f->_name, name); |
| 21 | } |
| 22 | |
| 23 | void NativeFunc::destroy(char* name) { |
| 24 | free(from(name)); |