Libs : #define

Post Reply
gryken
Posts: 4
Joined: Wed Jun 29, 2016 11:24 am

Libs : #define

Post by gryken »

Hello,

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

Code: Select all

#define SUNVOX_MAIN
#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.
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Libs : #define

Post by NightRadio »

Hello!
You only must define SUNVOX_MAIN in the file where you use the functions sv_load_dll() and sv_unload_dll().
Post Reply