j
jaipkg.dev
packages / library / MC_Basic

MC_Basic

331106elibrary

My collection of jai utility functions and whatnot that I use in my projects.

No license · updated 8 months ago

Add it to your project's modules folder, e.g. my_cool_project/modules/MC_Basic

Then import it #import "MC_Basic"()(DEVELOPER=true, SHOW_CODE_IN_STACK_TRACE=true, xexit=xexit);

My xexit function looks like this (if you leave out the xexit arg then it'll default to using exit()):

xexit :: (status: s32) {
    print("Shutting down...\n");
    #if OS == .WINDOWS {
        FlushFileBuffers(console_stdout);
    }
    on_shutdown_app();
    exit(status);
}