1#ifndef NNGN_OS_PLATFORM_H
2#define NNGN_OS_PLATFORM_H
10#if defined(_WIN64) || defined(__x86_64__)
11 #define NNGN_PLATFORM_64BIT
13 #define NNGN_PLATFORM_32BIT
17 #define NNGN_PLATFORM_EMSCRIPTEN
19 #undef NNGN_PLATFORM_HAS_SOCKETS
26 static constexpr bool debug =
true;
28 static constexpr bool debug =
false;
30#ifdef NNGN_PLATFORM_32BIT
31 static constexpr bool m32 =
true,
m64 =
false;
32#elif defined(NNGN_PLATFORM_64BIT)
33 static constexpr bool m32 =
false,
m64 =
true;
35#ifdef NNGN_PLATFORM_EMSCRIPTEN
40#ifdef NNGN_LUA_USE_ALLOC
45#ifdef NNGN_PLATFORM_HAS_LIBPNG
50#ifdef NNGN_PLATFORM_HAS_SOCKETS
55#ifdef NNGN_PLATFORM_HAS_VMA
56 static constexpr bool has_vma =
true;
61 static constexpr int sig_pipe = SIGPIPE;
65 static std::span<const char *const>
argv;
67 static bool init(
int argc,
const char *
const *
argv);
68 static void setenv(
const char *
name,
const char *value);
name
Definition cathedral.lua:11
init
Definition img_common.lua:34