INNER CODE UNIT · C
ctx
acoto87/war1 · src/war1_editor.c:168
WarEditorContext* ctx = (WarEditorContext*)wm_alloc(sizeof(WarEditorContext));
if (!ctx)
{
logError("Failed to allocate WarEditorContext!");
wm_allocFree();
return -1;
}
if (!we_init(ctx))
{
logError("Failed to initialize the editor!");
wm_allocFree();
return -1;
}
we_run(ctx);
we_quit(ctx);
wm_allocFree();