by mcguire · 10y ago · 0 comments
It needs to abuse the preprocessor to avoid having multiple conflicting copies of the functions.
The implementation mode requires to define the preprocessor macro
NK_IMPLEMENTATION in *one* .c/.cpp file before #includeing this file, e.g.:
#define NK_IMPLEMENTATION
#include "nuklear.h"