1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-29 14:43:38 +00:00

Fixed compiler warning on GCC related to duktape specific issue

This commit is contained in:
Bryan Roe
2019-01-17 21:56:34 -08:00
parent 9a6e4af874
commit 3612e45cef
12 changed files with 55 additions and 92 deletions

View File

@@ -209,10 +209,7 @@ duk_ret_t mod_Search_Files(duk_context *ctx, char* id)
}
else
{
sprintf_s(fileName, sizeof(fileName), "Module: %s (NOT FOUND)", id);
duk_push_string(ctx, fileName);
duk_throw(ctx);
return DUK_RET_ERROR;
return(ILibDuktape_Error(ctx, "Module: %s (NOT FOUND)", id));
}
}
void ILibDuktape_ModSearch_AddHandler_AlsoIncludeJS(duk_context *ctx, char *js, size_t jsLen)