Minimal Banjo program demonstrating the init-work-cleanup lifecycle pattern.
Minimal Banjo program demonstrating the init-work-cleanup lifecycle pattern.Every Banjo program follows this structure: initialise subsystems with bj_begin(), do your work, then cleanup with bj_end().
int main(
int argc,
char* argv[]) {
(void)argc;
(void)argv;
return 1;
}
return 0;
}
int main(int argc, char *argv[])
#define bj_info(...)
Log a message using the BJ_LOG_INFO level.
bj_bool bj_begin(int systems, struct bj_error **error)
Initialises the system.
void bj_end(void)
De-initialises the system.
Logging utility functions.
Portable main() replacement with platform-aware entry shim.
Header file for system interactions.