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: initialize 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;
}
#define bj_info(...)
Log a message using the BJ_LOG_INFO level.
Definition log.h:105
bj_bool bj_begin(int systems, struct bj_error **error)
Initializes the system.
void bj_end(void)
De-initializes the system.
@ BJ_VIDEO_SYSTEM
Definition system.h:20
@ BJ_AUDIO_SYSTEM
Definition system.h:19
Logging utility functions.
Portable main substitution and application callback facilities.
Header file for system interactions.