2017-01-10 16:31:05 +01:00
|
|
|
#pragma once
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2017-01-10 16:31:05 +01:00
|
|
|
#ifndef UNILIB_H
|
|
|
|
#define UNILIB_H
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2017-01-10 18:05:48 +01:00
|
|
|
#define _POSIX_C_SOURCE 200809L
|
|
|
|
|
2017-01-10 16:31:05 +01:00
|
|
|
#ifndef MAX_PATH
|
|
|
|
# define MAX_PATH 4096
|
2014-03-15 19:29:11 +01:00
|
|
|
#endif
|
|
|
|
|
2017-01-10 16:31:05 +01:00
|
|
|
#define UNUSED_ARG(a) (void)(a)
|
2014-03-15 19:29:11 +01:00
|
|
|
|
2017-01-10 16:31:05 +01:00
|
|
|
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
2016-11-25 20:15:11 +01:00
|
|
|
|
2017-01-10 18:05:48 +01:00
|
|
|
#define TOLUA_CAST (char*)
|
2016-11-25 20:15:11 +01:00
|
|
|
#endif
|