bool japi_func_add(const char* proc_name, uintptr_t new_proc) { func_value const* nf = jass_func(proc_name); if (!nf) { return false; } return japi_mapping.insert(std::make_pair(proc_name, func_value(*nf, new_proc))).second; }
uintptr_t call(const char* name, ...) { func_value const* nf = jass_func(name); if (!nf) { nf = japi_func(name); if (!nf) { return 0; } } return call(nf->get_address(), (const uintptr_t*)((va_list)_ADDRESSOF(name) + _INTSIZEOF(name)), nf->get_param().size()); }