Page 1 of 1

Libs : #define

Posted: Tue Jul 19, 2016 11:00 am
by gryken

In all example C files, for linux, there are theses 2 lines :

Code: Select all

#include "../../headers/sunvox.h"
( files : test1.cpp , etc )

I not sure to understand, how to use this.

- in which cases, do i use this #define SUNVOX_MAIN ?

- in which cases, do i not use this #define SUNVOX_MAIN ?

Thank you.

Re: Libs : #define

Posted: Sat Jul 23, 2016 11:51 pm
by NightRadio
You only must define SUNVOX_MAIN in the file where you use the functions sv_load_dll() and sv_unload_dll().