Loading...
Searching...
No Matches
28#ifndef MJS_EXPOSE_PRIVATE
29#define MJS_EXPOSE_PRIVATE 1
35#define MJS_PRIVATE static
39#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
43#if(defined(__GNUC__) || defined(__TI_COMPILER_VERSION__)) && !defined(_WIN32)
44#define WEAK __attribute__((weak))
50#ifndef CS_ENABLE_STDIO
51#define CS_ENABLE_STDIO 1
54#include "common/cs_dbg.h"
55#include "common/cs_file.h"
56#include "common/mbuf.h"
58#if defined(_WIN32) && _MSC_VER < 1700
59typedef signed char int8_t;
60typedef unsigned char uint8_t;
62typedef unsigned int uint32_t;
64typedef unsigned short uint16_t;
65typedef __int64 int64_t;
66typedef unsigned long uintptr_t;
69#define __func__ __FILE__ ":" STR(__LINE__)
71#define vsnprintf _vsnprintf
72#define isnan(x) _isnan(x)
73#define va_copy(x, y) (x) = (y)
74#define CS_DEFINE_DIRENT
77#if defined(__unix__) || defined(__APPLE__)
88#ifndef MJS_INIT_OFFSET_SIZE
89#define MJS_INIT_OFFSET_SIZE 1