Banjo API 0.0.1
C99 game development API
Loading...
Searching...
No Matches
Main Entry Point
Collaboration diagram for Main Entry Point:

Functions

int bj_call_main (int argc, char *argv[], int(*function)(int argc, char *argv[]))

Detailed Description

Platform-specific main function abstraction and callback system.

This module provides a portable entry point system for applications that works across different platforms (Windows, Emscripten, iOS) by wrapping platform-specific initialization code.

Two usage modes are available:

  • Standard mode: Define your own bj_main function.
  • Callback mode: Implement lifecycle callbacks (begin, iterate, end).
Configuration Macros
  • BJ_NO_AUTOMAIN: Define to provide your own main function.
  • BJ_AUTOMAIN_CALLBACKS: Define to use the callback system instead of bj_main.
  • BJ_AUTOMAIN: (Internal) Automatically defined on platforms requiring special setup.

Function Documentation

◆ bj_call_main()

int bj_call_main ( int argc,
char * argv[],
int(* function )(int argc, char *argv[]) )
extern