mb_remove_reserved_func |
![]() ![]() |
status_t mb_remove_reserved_func( mb_interpreter_t* s, const char* lpszName )
You can remove selected reserved functions and statements from the interpreter by using this functions. This can be useful if you want to limit the functionality of MyBASIC2.
Example
// Remove all File and Directory Statements mb_remove_reserved_func( bas, "NAME" ); mb_remove_reserved_func( bas, "RMDIR" ); mb_remove_reserved_func( bas, "MKDIR" ); mb_remove_reserved_func( bas, "CHDIR" ); mb_remove_reserved_func( bas, "KILL" ); |