| 711 | } |
| 712 | |
| 713 | nullres nullcGetFunction(const char* name, NULLCFuncPtr* func) |
| 714 | { |
| 715 | using namespace NULLC; |
| 716 | NULLC_CHECK_INITIALIZED(false); |
| 717 | |
| 718 | if(!func) |
| 719 | { |
| 720 | nullcLastError = "ERROR: passed pointer to NULLC function is 'null'"; |
| 721 | return false; |
| 722 | } |
| 723 | unsigned int index = nullcFindFunctionIndex(name); |
| 724 | if(index == ~0u) |
| 725 | return false; |
| 726 | func->id = index; |
| 727 | func->context = NULL; |
| 728 | return true; |
| 729 | } |
| 730 | |
| 731 | nullres nullcSetFunction(const char* name, NULLCFuncPtr func) |
| 732 | { |