fix forward declaration using c11 features (???)

This commit is contained in:
ruby0x1
2020-12-03 13:38:46 -08:00
parent 89c5e22480
commit 4687300ad6

View File

@ -66,11 +66,11 @@ typedef const char* (*WrenResolveModuleFn)(WrenVM* vm,
const char* importer, const char* name);
// Forward declare
typedef struct WrenLoadModuleResult WrenLoadModuleResult;
struct WrenLoadModuleResult;
// Called after loadModuleFn is called for module [name]. The original returned result
// is handed back to you in this callback, so that you can free memory if appropriate.
typedef void (*WrenLoadModuleCompleteFn)(WrenVM* vm, const char* name, WrenLoadModuleResult result);
typedef void (*WrenLoadModuleCompleteFn)(WrenVM* vm, const char* name, struct WrenLoadModuleResult result);
// The result of a loadModuleFn call.
// [source] is the source code for the module, or NULL if the module is not found.