added macos fixes

main
Vladyslav Hrytsenko 2024-07-31 22:29:31 +03:00
parent c2338be74c
commit 050accbce1
7 changed files with 37548 additions and 37546 deletions

View File

@ -1 +1 @@
frame: 0-0 Idle frame: 0-0 Idle

View File

@ -148,7 +148,7 @@ static char* luaL_prepbuffsize(luaL_Buffer* B, size_t sz) {
# define ARCH_X86 # define ARCH_X86
#elif defined __amd64__ || defined _M_X64 #elif defined __amd64__ || defined _M_X64
# define ARCH_X64 # define ARCH_X64
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm #elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm || defined __arm64__
# define ARCH_ARM # define ARCH_ARM
#elif defined OS_LINUX && defined __TINYC__ //< @r-lyeh: tcc+linux #elif defined OS_LINUX && defined __TINYC__ //< @r-lyeh: tcc+linux
# define ARCH_X64 //< @r-lyeh: tcc+linux # define ARCH_X64 //< @r-lyeh: tcc+linux

View File

@ -161,6 +161,7 @@ static char *ui_filter = 0;
{{FILE:3rd_plmpeg.h}} {{FILE:3rd_plmpeg.h}}
{{FILE:3rd_jo_mpeg.h}} {{FILE:3rd_jo_mpeg.h}}
//#define _RTL_RUN_ONCE _RTL_RUN_ONCE2 // __MINGW64__ //#define _RTL_RUN_ONCE _RTL_RUN_ONCE2 // __MINGW64__
#undef I
{{FILE:3rd_https.h}} {{FILE:3rd_https.h}}
#undef F2 #undef F2
#undef F3 #undef F3

View File

@ -1,12 +1,12 @@
/* game framework (3rd libs) /* game framework (3rd libs)
* - rlyeh, public domain * - rlyeh, public domain
*/ */
#ifdef V4K_3RD #ifdef V4K_3RD
#define GLAD_GL_IMPLEMENTATION // glad #define GLAD_GL_IMPLEMENTATION // glad
#endif #endif
#line 1 "3rd_glad.h" #line 1 "3rd_glad.h"
#ifndef __EMSCRIPTEN__ #ifndef __EMSCRIPTEN__
#ifndef _GNU_SOURCE // juicy linux headers #ifndef _GNU_SOURCE // juicy linux headers
@ -11687,8 +11687,8 @@ int gladLoadGL( GLADloadfunc load) {
#endif /* GLAD_GL_IMPLEMENTATION */ #endif /* GLAD_GL_IMPLEMENTATION */
#endif /* __EMSCRIPTEN__ */ #endif /* __EMSCRIPTEN__ */
#line 0 #line 0
#line 1 "3rd_icon_md.h" #line 1 "3rd_icon_md.h"
// Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for languages C and C++ // Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for languages C and C++
// from https://github.com/google/material-design-icons/raw/master/font/MaterialIcons-Regular.codepoints // from https://github.com/google/material-design-icons/raw/master/font/MaterialIcons-Regular.codepoints
// for use with https://github.com/google/material-design-icons/blob/master/font/MaterialIcons-Regular.ttf // for use with https://github.com/google/material-design-icons/blob/master/font/MaterialIcons-Regular.ttf
@ -13935,104 +13935,104 @@ int gladLoadGL( GLADloadfunc load) {
#define ICON_MD_ZOOM_OUT "\xee\xa4\x80" // U+e900 #define ICON_MD_ZOOM_OUT "\xee\xa4\x80" // U+e900
#define ICON_MD_ZOOM_OUT_MAP "\xee\x95\xab" // U+e56b #define ICON_MD_ZOOM_OUT_MAP "\xee\x95\xab" // U+e56b
#endif // ICON_MD_H #endif // ICON_MD_H
#line 0 #line 0
#ifdef V4K_3RD #ifdef V4K_3RD
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// 3rd party libs // 3rd party libs
#define ARCHIVE_C // archive.c #define ARCHIVE_C // archive.c
#define BASE64_C // base64.c #define BASE64_C // base64.c
#define COMPRESS_C // compress.c #define COMPRESS_C // compress.c
#define ENET_IMPLEMENTATION // enet #define ENET_IMPLEMENTATION // enet
#define GJK_C // gjk #define GJK_C // gjk
#define _GLFW_IMPLEMENTATION // glfw337 #define _GLFW_IMPLEMENTATION // glfw337
#define GLFW_INCLUDE_NONE // glfw337 #define GLFW_INCLUDE_NONE // glfw337
#define HTTPS_IMPLEMENTATION // https #define HTTPS_IMPLEMENTATION // https
#define JO_MPEG_COMPONENTS 3 // jo_mpeg #define JO_MPEG_COMPONENTS 3 // jo_mpeg
#define JSON5_C // json5 #define JSON5_C // json5
#define LUA_IMPL // lua544 #define LUA_IMPL // lua544
#define LUA_USE_POPEN 1 // for lite editor #define LUA_USE_POPEN 1 // for lite editor
#define MINIAUDIO_IMPLEMENTATION // miniaudio #define MINIAUDIO_IMPLEMENTATION // miniaudio
#define MA_NO_FLAC // miniaudio #define MA_NO_FLAC // miniaudio
#define NK_GLFW_GL3_IMPLEMENTATION // nuklear #define NK_GLFW_GL3_IMPLEMENTATION // nuklear
#define NK_IMPLEMENTATION // nuklear #define NK_IMPLEMENTATION // nuklear
#define NK_INCLUDE_DEFAULT_ALLOCATOR // nuklear #define NK_INCLUDE_DEFAULT_ALLOCATOR // nuklear
#define NK_INCLUDE_DEFAULT_FONT // nuklear #define NK_INCLUDE_DEFAULT_FONT // nuklear
#define NK_INCLUDE_FIXED_TYPES // nuklear #define NK_INCLUDE_FIXED_TYPES // nuklear
#define NK_INCLUDE_FONT_BAKING // nuklear #define NK_INCLUDE_FONT_BAKING // nuklear
#define NK_INCLUDE_STANDARD_IO // nuklear #define NK_INCLUDE_STANDARD_IO // nuklear
#define NK_INCLUDE_STANDARD_VARARGS // nuklear #define NK_INCLUDE_STANDARD_VARARGS // nuklear
#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT // nuklear #define NK_INCLUDE_VERTEX_BUFFER_OUTPUT // nuklear
#define NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS 64 // nuklear #define NK_MAX_LAYOUT_ROW_TEMPLATE_COLUMNS 64 // nuklear
#define NK_KEYSTATE_BASED_INPUT // nuklear #define NK_KEYSTATE_BASED_INPUT // nuklear
#define PL_MPEG_IMPLEMENTATION // pl_mpeg #define PL_MPEG_IMPLEMENTATION // pl_mpeg
#define STB_IMAGE_IMPLEMENTATION // stbi #define STB_IMAGE_IMPLEMENTATION // stbi
#define STB_IMAGE_WRITE_IMPLEMENTATION // stbi_write #define STB_IMAGE_WRITE_IMPLEMENTATION // stbi_write
#define STB_SPRINTF_IMPLEMENTATION // stb_sprintf #define STB_SPRINTF_IMPLEMENTATION // stb_sprintf
#define STB_SPRINTF_NOUNALIGNED // stb_sprintf #define STB_SPRINTF_NOUNALIGNED // stb_sprintf
#define STS_MIXER_IMPLEMENTATION // sts_mixer #define STS_MIXER_IMPLEMENTATION // sts_mixer
#define SIMPLEX_C // simplex #define SIMPLEX_C // simplex
#define SWRAP_IMPLEMENTATION // swrap #define SWRAP_IMPLEMENTATION // swrap
#define SWRAP_STATIC // swrap #define SWRAP_STATIC // swrap
#define THREAD_IMPLEMENTATION // thread #define THREAD_IMPLEMENTATION // thread
#define TFD_IMPLEMENTATION // tinyfiledialogs #define TFD_IMPLEMENTATION // tinyfiledialogs
#define BQ_PLATFORM_IMPLEMENTATION // websocket #define BQ_PLATFORM_IMPLEMENTATION // websocket
#define BQ_WEBSOCKET_IMPLEMENTATION // websocket #define BQ_WEBSOCKET_IMPLEMENTATION // websocket
#define XML_C // xml #define XML_C // xml
#ifdef __APPLE__ #ifdef __APPLE__
#define MA_NO_RUNTIME_LINKING // miniaudio osx #define MA_NO_RUNTIME_LINKING // miniaudio osx
#define _GLFW_COCOA // glfw osx #define _GLFW_COCOA // glfw osx
#elif defined _WIN32 #elif defined _WIN32
#define _GLFW_WIN32 // glfw win32 #define _GLFW_WIN32 // glfw win32
#else #else
#define _GLFW_X11 // glfw linux, also _GLFW_OSMESA or _GLFW_WAYLAND #define _GLFW_X11 // glfw linux, also _GLFW_OSMESA or _GLFW_WAYLAND
#endif #endif
#if defined __TINYC__ && defined _WIN32 #if defined __TINYC__ && defined _WIN32
#define MAPVK_VSC_TO_VK 1 #define MAPVK_VSC_TO_VK 1
#define MAPVK_VK_TO_VSC 0 #define MAPVK_VK_TO_VSC 0
#define IPV6_V6ONLY 27 #define IPV6_V6ONLY 27
#define _WIN32_WINNT_VISTA 0 #define _WIN32_WINNT_VISTA 0
#define _WIN32_WINNT_WINXP 0 #define _WIN32_WINNT_WINXP 0
#define _WIN32_WINNT_WIN7 0 #define _WIN32_WINNT_WIN7 0
#endif #endif
#ifdef __TINYC__ #ifdef __TINYC__
#define STBI_NO_SIMD #define STBI_NO_SIMD
// no uint128_t (3rd_https.h) // no uint128_t (3rd_https.h)
char* strtok_s( char* strtok_s(
char* str, char* str,
const char* delimiters, const char* delimiters,
char** context char** context
); );
#endif #endif
#if defined __clang__ && defined _WIN32 #if defined __clang__ && defined _WIN32
int execv(const char *path, char *const argv[]); int execv(const char *path, char *const argv[]);
#elif (is(tcc) /*|| defined __clang__*/) && defined _WIN32 #elif (is(tcc) /*|| defined __clang__*/) && defined _WIN32
int execv(const char *path, char *const argv[]); int execv(const char *path, char *const argv[]);
errno_t strerror_s( errno_t strerror_s(
char *buffer, char *buffer,
size_t sizeInBytes, size_t sizeInBytes,
int errnum int errnum
); );
typedef int socklen_t; typedef int socklen_t;
#if is(tcc) #if is(tcc)
#define restrict #define restrict
const char *inet_ntop(int af, const void *restrict src, const char *inet_ntop(int af, const void *restrict src,
char *restrict dst, socklen_t size); char *restrict dst, socklen_t size);
int inet_pton(int af, const char *restrict src, void *restrict dst); int inet_pton(int af, const char *restrict src, void *restrict dst);
#endif #endif
errno_t fopen_s( errno_t fopen_s(
FILE** pFile, FILE** pFile,
const char *filename, const char *filename,
const char *mode const char *mode
); );
#endif #endif
//--- //---
#line 1 "3rd_glfw3.h" #line 1 "3rd_glfw3.h"
#ifndef __EMSCRIPTEN__ #ifndef __EMSCRIPTEN__
// forked from https://github.com/SasLuca/glfw-single-header (CC0-1.0 licensed) // forked from https://github.com/SasLuca/glfw-single-header (CC0-1.0 licensed)
@ -53227,10 +53227,10 @@ uint32_t _glfwKeySym2Unicode(unsigned int keysym)
#endif #endif
#endif /* __EMSCRIPTEN__ */ #endif /* __EMSCRIPTEN__ */
#line 0 #line 0
#undef timeGetTime #undef timeGetTime
//--- //---
#line 1 "3rd_swrap.h" #line 1 "3rd_swrap.h"
// https://github.com/BareRose/swrap/blob/master/swrap.h // https://github.com/BareRose/swrap/blob/master/swrap.h
/* /*
@ -53521,9 +53521,9 @@ SWDEF int swrapMultiSelect (int* socks, size_t socks_size, double timeout) {
#endif //SWRAP_IMPLEMENTATION #endif //SWRAP_IMPLEMENTATION
#endif //SWRAP_H #endif //SWRAP_H
#line 0 #line 0
//--- //---
#line 1 "3rd_jo_mp1.h" #line 1 "3rd_jo_mp1.h"
/* public domain Simple, Minimalistic MPEG Layer 1 decoder - http://jonolick.com /* public domain Simple, Minimalistic MPEG Layer 1 decoder - http://jonolick.com
* *
* Revision History: * Revision History:
@ -53931,10 +53931,10 @@ bool jo_read_mp1(const void *input, int inputSize, short **output_, int *outputS
#endif // JO_MP1_HEADER_FILE_ONLY #endif // JO_MP1_HEADER_FILE_ONLY
#line 0 #line 0
#define get_bits stb_vorbis_get_bits #define get_bits stb_vorbis_get_bits
#define error stb_vorbis_error #define error stb_vorbis_error
#line 1 "3rd_stb_vorbis.h" #line 1 "3rd_stb_vorbis.h"
// Ogg Vorbis audio decoder - v1.22 - public domain // Ogg Vorbis audio decoder - v1.22 - public domain
// http://nothings.org/stb_vorbis/ // http://nothings.org/stb_vorbis/
// //
@ -59519,10 +59519,10 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
*/ */
#line 0 #line 0
#undef error #undef error
#undef DEBUG #undef DEBUG
#line 1 "3rd_sts_mixer.h" #line 1 "3rd_sts_mixer.h"
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// sts_mixer.h - v0.02 // sts_mixer.h - v0.02
// written 2016 by Sebastian Steinhauer // written 2016 by Sebastian Steinhauer
@ -60058,8 +60058,8 @@ int main(int argc, char *argv[]) {
For more information, please refer to <http://unlicense.org/> For more information, please refer to <http://unlicense.org/>
*/ */
#line 0 #line 0
#line 1 "3rd_miniaudio.h" #line 1 "3rd_miniaudio.h"
/* /*
Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file. Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file.
miniaudio - v0.11.18 - 2023-08-07 miniaudio - v0.11.18 - 2023-08-07
@ -152597,14 +152597,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#line 0 #line 0
//--- //---
#undef L #undef L
#undef C #undef C
#undef R #undef R
#define error l_error #define error l_error
#define panic l_panic #define panic l_panic
#line 1 "3rd_lua.h" #line 1 "3rd_lua.h"
/* /*
minilua.h -- Lua in a single header minilua.h -- Lua in a single header
Project URL: https://github.com/edubart/minilua Project URL: https://github.com/edubart/minilua
@ -181845,12 +181845,12 @@ int main (int argc, char **argv) {
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
#line 0 #line 0
#undef cast #undef cast
#undef G #undef G
//--- //---
#define LUAFFI_C #define LUAFFI_C
#line 1 "3rd_luaffi.h" #line 1 "3rd_luaffi.h"
#ifndef LUAFFI_H #ifndef LUAFFI_H
#define LUAFFI_H #define LUAFFI_H
@ -182001,7 +182001,7 @@ static char* luaL_prepbuffsize(luaL_Buffer* B, size_t sz) {
# define ARCH_X86 # define ARCH_X86
#elif defined __amd64__ || defined _M_X64 #elif defined __amd64__ || defined _M_X64
# define ARCH_X64 # define ARCH_X64
#elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm #elif defined __arm__ || defined __ARM__ || defined ARM || defined __ARM || defined __arm || defined __arm64__
# define ARCH_ARM # define ARCH_ARM
#elif defined OS_LINUX && defined __TINYC__ //< @r-lyeh: tcc+linux #elif defined OS_LINUX && defined __TINYC__ //< @r-lyeh: tcc+linux
# define ARCH_X64 //< @r-lyeh: tcc+linux # define ARCH_X64 //< @r-lyeh: tcc+linux
@ -194367,9 +194367,9 @@ int luaopen_ffi(lua_State* L)
#endif #endif
#line 0 #line 0
//--- //---
#line 1 "3rd_stb_image.h" #line 1 "3rd_stb_image.h"
/* stb_image - v2.28 - public domain image loader - http://nothings.org/stb /* stb_image - v2.28 - public domain image loader - http://nothings.org/stb
no warranty implied; use at your own risk no warranty implied; use at your own risk
@ -202357,8 +202357,8 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
*/ */
#line 0 #line 0
#line 1 "3rd_stb_image_write.h" #line 1 "3rd_stb_image_write.h"
/* stb_image_write - v1.16 - public domain - http://nothings.org/stb /* stb_image_write - v1.16 - public domain - http://nothings.org/stb
writes out PNG/BMP/TGA/JPEG/HDR images to C stdio - Sean Barrett 2010-2015 writes out PNG/BMP/TGA/JPEG/HDR images to C stdio - Sean Barrett 2010-2015
no warranty implied; use at your own risk no warranty implied; use at your own risk
@ -204083,14 +204083,14 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
*/ */
#line 0 #line 0
//--- //---
#undef freelist #undef freelist
#define STBTT_malloc(x,u) ((void)(u),MALLOC(x)) #define STBTT_malloc(x,u) ((void)(u),MALLOC(x))
#define STBTT_free(x,u) ((void)(u),FREE(x)) #define STBTT_free(x,u) ((void)(u),FREE(x))
#define NK_ASSERT ASSERT #define NK_ASSERT ASSERT
#define NK_DTOA(s,n) strcpy(s, va("%f", n)) // override cos built-in nk_dtoa() will freeze while parsing UINT_MAX otherwise #define NK_DTOA(s,n) strcpy(s, va("%f", n)) // override cos built-in nk_dtoa() will freeze while parsing UINT_MAX otherwise
#line 1 "3rd_nuklear.h" #line 1 "3rd_nuklear.h"
/* /*
/// # Nuklear /// # Nuklear
/// ![](https://cloud.githubusercontent.com/assets/8057201/11761525/ae06f0ca-a0c6-11e5-819d-5610b25f6ef4.gif) /// ![](https://cloud.githubusercontent.com/assets/8057201/11761525/ae06f0ca-a0c6-11e5-819d-5610b25f6ef4.gif)
@ -234461,8 +234461,8 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
/// in libraries and brought me to create some of my own. Finally Apoorva Joshi /// in libraries and brought me to create some of my own. Finally Apoorva Joshi
/// for his single header file packer. /// for his single header file packer.
*/ */
#line 0 #line 0
#line 1 "3rd_nuklear_glfw_gl3.h" #line 1 "3rd_nuklear_glfw_gl3.h"
/* /*
* Nuklear - 1.32.0 - public domain * Nuklear - 1.32.0 - public domain
@ -235015,9 +235015,9 @@ void nk_glfw3_shutdown(struct nk_glfw* glfw)
#endif #endif
#endif #endif
#line 0 #line 0
static char *ui_filter = 0; static char *ui_filter = 0;
#line 1 "3rd_nuklear_filebrowser.h" #line 1 "3rd_nuklear_filebrowser.h"
// file browser for nuklear, based on https://github.com/vurtun/nuklear/blob/master/example/file_browser.c (public domain) // file browser for nuklear, based on https://github.com/vurtun/nuklear/blob/master/example/file_browser.c (public domain)
// - rlyeh, public domain // - rlyeh, public domain
// //
@ -235501,16 +235501,16 @@ static struct nk_image icon_load_rect(unsigned id, unsigned w, unsigned h, unsig
} }
nk_end(); nk_end();
*/ */
#line 0 #line 0
//--- //---
#ifdef ENABLE_ASSIMP #ifdef ENABLE_ASSIMP
//{{FILE/*:*/3rd_assimp.h}} //{{FILE/*:*/3rd_assimp.h}}
//#include "3rd_assimp/cimport.h" //#include "3rd_assimp/cimport.h"
//#include "3rd_assimp/scene.h" //#include "3rd_assimp/scene.h"
//#include "3rd_assimp/postprocess.h" //#include "3rd_assimp/postprocess.h"
//#pragma comment(lib, "3rd/3rd_assimp/x64/assimp") //#pragma comment(lib, "3rd/3rd_assimp/x64/assimp")
#endif #endif
#line 1 "3rd_json5.h" #line 1 "3rd_json5.h"
// JSON5 + SJSON parser module // JSON5 + SJSON parser module
// //
// License: // License:
@ -235951,8 +235951,8 @@ int main() {
#endif #endif
#endif // JSON5_C #endif // JSON5_C
#line 0 #line 0
#line 1 "3rd_gjk.h" #line 1 "3rd_gjk.h"
// GJK distance algorithm. original code by @vurtun and @randygaul, public domain. // GJK distance algorithm. original code by @vurtun and @randygaul, public domain.
// [src] https://gist.github.com/vurtun/29727217c269a2fbf4c0ed9a1d11cb40 // [src] https://gist.github.com/vurtun/29727217c269a2fbf4c0ed9a1d11cb40
// - rlyeh, public domain. // - rlyeh, public domain.
@ -236560,8 +236560,8 @@ gjk_result gjk_quad(float a_radius, float b_radius) {
} }
#endif #endif
#line 0 #line 0
#line 1 "3rd_compress.h" #line 1 "3rd_compress.h"
// compress.c de/compressors into a single-file header // compress.c de/compressors into a single-file header
// - rlyeh, public domain // - rlyeh, public domain
// //
@ -247401,8 +247401,8 @@ unsigned file_decode(FILE* in, FILE* out, FILE *logfile) { // multi decoder
} }
#endif // COMPRESS_C #endif // COMPRESS_C
#line 0 #line 0
#line 1 "3rd_archive.h" #line 1 "3rd_archive.h"
// archive.c pak/zip/tar/dir archivers // archive.c pak/zip/tar/dir archivers
// - rlyeh, public domain // - rlyeh, public domain
@ -249027,11 +249027,11 @@ int main( int argc, char **argv ) {
#define main main__ #define main main__
#endif //DIR_DEMO #endif //DIR_DEMO
#endif //DIR_C #endif //DIR_C
#line 0 #line 0
#if is(win32) #if is(win32)
#include <mmsystem.h> // timeapi.h #include <mmsystem.h> // timeapi.h
#endif #endif
#line 1 "3rd_thread.h" #line 1 "3rd_thread.h"
/* /*
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
Licensing information can be found at the end of the file. Licensing information can be found at the end of the file.
@ -250760,8 +250760,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
*/ */
#line 0 #line 0
#line 1 "3rd_plmpeg.h" #line 1 "3rd_plmpeg.h"
/* /*
PL_MPEG - MPEG1 Video decoder, MP2 Audio decoder, MPEG-PS demuxer PL_MPEG - MPEG1 Video decoder, MP2 Audio decoder, MPEG-PS demuxer
@ -255026,8 +255026,8 @@ void plm_audio_matrix_transform(int s[32][3], int ss, float *d, int dp) {
#endif // PL_MPEG_IMPLEMENTATION #endif // PL_MPEG_IMPLEMENTATION
#line 0 #line 0
#line 1 "3rd_jo_mpeg.h" #line 1 "3rd_jo_mpeg.h"
/* public domain Simple, Minimalistic, No Allocations MPEG writer - http://jonolick.com /* public domain Simple, Minimalistic, No Allocations MPEG writer - http://jonolick.com
* *
* Latest revisions: * Latest revisions:
@ -255292,9 +255292,10 @@ void jo_write_mpeg(FILE *fp, const unsigned char *bgrx, int width, int height, i
fwrite("\x00\x00\x01\xb7", 4, 1, fp); // End of Sequence fwrite("\x00\x00\x01\xb7", 4, 1, fp); // End of Sequence
} }
#endif #endif
#line 0 #line 0
//#define _RTL_RUN_ONCE _RTL_RUN_ONCE2 // __MINGW64__ //#define _RTL_RUN_ONCE _RTL_RUN_ONCE2 // __MINGW64__
#line 1 "3rd_https.h" #undef I
#line 1 "3rd_https.h"
/* /*
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
Licensing information can be found at the end of the file. Licensing information can be found at the end of the file.
@ -302274,10 +302275,10 @@ int main() {
https_release(h); https_release(h);
} }
#endif #endif
#line 0 #line 0
#undef F2 #undef F2
#undef F3 #undef F3
#line 1 "3rd_enet.h" #line 1 "3rd_enet.h"
/** /**
* include/enet.h - a Single-Header auto-generated variant of enet.h library. * include/enet.h - a Single-Header auto-generated variant of enet.h library.
* *
@ -308388,9 +308389,9 @@ extern "C" {
#endif // ENET_IMPLEMENTATION #endif // ENET_IMPLEMENTATION
#endif // ENET_INCLUDE_H #endif // ENET_INCLUDE_H
#line 0 #line 0
#define tls_init tls_init2 #define tls_init tls_init2
#line 1 "3rd_bq_websocket.h" #line 1 "3rd_bq_websocket.h"
/* /*
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
This software is available under 2 licenses -- choose whichever you prefer. This software is available under 2 licenses -- choose whichever you prefer.
@ -314752,8 +314753,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#endif // BQ_PLATFORM_IMPLEMENTATION #endif // BQ_PLATFORM_IMPLEMENTATION
#line 0 #line 0
#line 1 "3rd_simplex.h" #line 1 "3rd_simplex.h"
/** 1D, 2D, 3D and 4D float Perlin Simplex noise */ /** 1D, 2D, 3D and 4D float Perlin Simplex noise */
/** Original code, stefan gustavson (PD). */ /** Original code, stefan gustavson (PD). */
@ -315235,8 +315236,8 @@ float snoise4(float x, float y, float z, float w) {
#undef G4 #undef G4
#endif #endif
#line 0 #line 0
#line 1 "3rd_tfd.h" #line 1 "3rd_tfd.h"
/* If you are using a C++ compiler to compile tinyfiledialogs.c (maybe renamed with an extension ".cpp") /* If you are using a C++ compiler to compile tinyfiledialogs.c (maybe renamed with an extension ".cpp")
then comment out << extern "C" >> bellow in this header file) */ then comment out << extern "C" >> bellow in this header file) */
@ -323295,8 +323296,8 @@ tinyfd_messageBox("The selected hexcolor is",
#endif #endif
#endif // TFD_IMPLEMENTATION #endif // TFD_IMPLEMENTATION
#line 0 #line 0
#line 1 "3rd_stb_sprintf.h" #line 1 "3rd_stb_sprintf.h"
// stb_sprintf - v1.10 - public domain snprintf() implementation // stb_sprintf - v1.10 - public domain snprintf() implementation
// originally by Jeff Roberts / RAD Game Tools, 2015/10/20 // originally by Jeff Roberts / RAD Game Tools, 2015/10/20
// http://github.com/nothings/stb // http://github.com/nothings/stb
@ -325203,9 +325204,9 @@ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
*/ */
#line 0 #line 0
#define g g2 #define g g2
#line 1 "3rd_xml.h" #line 1 "3rd_xml.h"
// original xml.h/xml.c files by tor andersson, public domain // original xml.h/xml.c files by tor andersson, public domain
#ifndef xml_h #ifndef xml_h
@ -325734,9 +325735,9 @@ struct xml *xml_parse(char *s, int preserve_white, char **errorp)
} }
#endif #endif
#line 0 #line 0
#undef g #undef g
#line 1 "3rd_polychop.h" #line 1 "3rd_polychop.h"
/* Progressive Mesh type Polygon Reduction Algorithm /* Progressive Mesh type Polygon Reduction Algorithm
* *
* 1998: Original version by Stan Melax (c) 1998 * 1998: Original version by Stan Melax (c) 1998
@ -326146,18 +326147,18 @@ API void ProgressiveMesh(int vert_n, int vert_stride, const float *v, int tri_n,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
*/ */
#line 0 #line 0
#define expr expr2 // 3rd_lua.h #define expr expr2 // 3rd_lua.h
#define EVAL_EXTEND_CONSTANTS \ #define EVAL_EXTEND_CONSTANTS \
for( int vk = input_enum(id), *once = &vk; once; once = 0) \ for( int vk = input_enum(id), *once = &vk; once; once = 0) \
if( vk >= 0 ) push(ev, vk); if( vk >= 0 ) push(ev, vk);
#define EVAL_EXTEND_FUNCTIONS \ #define EVAL_EXTEND_FUNCTIONS \
/**/ if(!strcmp(id, "input") && nargs ==1) push(ev, input(pop(ev))); \ /**/ if(!strcmp(id, "input") && nargs ==1) push(ev, input(pop(ev))); \
else if(!strcmp(id, "down") && nargs ==1) push(ev, input_down(pop(ev))); \ else if(!strcmp(id, "down") && nargs ==1) push(ev, input_down(pop(ev))); \
else if(!strcmp(id, "held") && nargs ==1) push(ev, input_held(pop(ev))); \ else if(!strcmp(id, "held") && nargs ==1) push(ev, input_held(pop(ev))); \
else if(!strcmp(id, "up") && nargs ==1) push(ev, input_up(pop(ev))); \ else if(!strcmp(id, "up") && nargs ==1) push(ev, input_up(pop(ev))); \
else if(!strcmp(id, "idle") && nargs ==1) push(ev, input_idle(pop(ev))); else if(!strcmp(id, "idle") && nargs ==1) push(ev, input_idle(pop(ev)));
#line 1 "3rd_eval.h" #line 1 "3rd_eval.h"
/* A mathematical expression evaluator. /* A mathematical expression evaluator.
* It uses a recursive descent parser internally. * It uses a recursive descent parser internally.
* Author: Werner Stoop * Author: Werner Stoop
@ -326666,8 +326667,8 @@ int main() {
assert(~puts("Ok") ); assert(~puts("Ok") );
} }
#endif #endif
#line 0 #line 0
#line 1 "3rd_luadebugger.h" #line 1 "3rd_luadebugger.h"
/* /*
Copyright (c) 2023 Scott Lembcke and Howling Moon Software Copyright (c) 2023 Scott Lembcke and Howling Moon Software
@ -328146,8 +328147,8 @@ int dbg_pcall(lua_State *lua, int nargs, int nresults, int msgh){
return err; return err;
} }
#line 0 #line 0
#line 1 "3rd_base64.h" #line 1 "3rd_base64.h"
// base64 de/encoder. Based on code by Jon Mayo - November 13, 2003 (PUBLIC DOMAIN). // base64 de/encoder. Based on code by Jon Mayo - November 13, 2003 (PUBLIC DOMAIN).
// - rlyeh, public domain // - rlyeh, public domain
@ -328288,10 +328289,10 @@ array(char) base64_decode(const char *inp, unsigned inlen) { // array_free() aft
} }
#endif // array_resize #endif // array_resize
#endif // BASE64_C #endif // BASE64_C
#line 0 #line 0
#if ENABLE_RPMALLOC #if ENABLE_RPMALLOC
#line 1 "3rd_rpmalloc.h" #line 1 "3rd_rpmalloc.h"
/* rpmalloc.h - Memory allocator - Public Domain - 2016 Mattias Jansson /* rpmalloc.h - Memory allocator - Public Domain - 2016 Mattias Jansson
* *
* This library provides a cross-platform lock free thread caching malloc implementation in C11. * This library provides a cross-platform lock free thread caching malloc implementation in C11.
@ -328665,8 +328666,8 @@ rpmalloc_get_heap_for_ptr(void* ptr);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#line 0 #line 0
#line 1 "3rd_rpmalloc.c" #line 1 "3rd_rpmalloc.c"
/* rpmalloc.c - Memory allocator - Public Domain - 2016-2020 Mattias Jansson /* rpmalloc.c - Memory allocator - Public Domain - 2016-2020 Mattias Jansson
* *
* This library provides a cross-platform lock free thread caching malloc implementation in C11. * This library provides a cross-platform lock free thread caching malloc implementation in C11.
@ -332296,29 +332297,29 @@ void
rpmalloc_linker_reference(void) { rpmalloc_linker_reference(void) {
(void)sizeof(_rpmalloc_initialized); (void)sizeof(_rpmalloc_initialized);
} }
#line 0 #line 0
//{{FILE: 3rd_rpmalloci.c}} //{{FILE: 3rd_rpmalloci.c}}
#define SYS_MEM_INIT() rpmalloc_initialize() #define SYS_MEM_INIT() rpmalloc_initialize()
#define SYS_MEM_REALLOC rprealloc #define SYS_MEM_REALLOC rprealloc
#define SYS_MEM_SIZE rpmalloc_usable_size #define SYS_MEM_SIZE rpmalloc_usable_size
#endif #endif
//#define SQLITE_OMIT_LOAD_EXTENSION //#define SQLITE_OMIT_LOAD_EXTENSION
//#define SQLITE_CORE 1 //#define SQLITE_CORE 1
//#define SQLITE_DEBUG 1 //#define SQLITE_DEBUG 1
//#define Token SQToken //#define Token SQToken
//#define Table SQTable //#define Table SQTable
//#define rehash sqlite3__rehash //#define rehash sqlite3__rehash
//#undef NB //#undef NB
//{ {FILE:3rd_sqlite3.c}} //{ {FILE:3rd_sqlite3.c}}
//#undef Token //#undef Token
//#undef Table //#undef Table
//#undef rehash //#undef rehash
//#undef NB //#undef NB
//#undef threadid //#undef threadid
// editor // editor
#line 1 "3rd_icon_mdi.h" #line 1 "3rd_icon_mdi.h"
// Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for languages C and C++ // Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for languages C and C++
// from https://raw.githubusercontent.com/Templarian/MaterialDesign-Webfont/master/css/materialdesignicons.css // from https://raw.githubusercontent.com/Templarian/MaterialDesign-Webfont/master/css/materialdesignicons.css
// for use with https://github.com/Templarian/MaterialDesign-Webfont/raw/master/fonts/materialdesignicons-webfont.ttf // for use with https://github.com/Templarian/MaterialDesign-Webfont/raw/master/fonts/materialdesignicons-webfont.ttf
@ -339697,11 +339698,11 @@ rpmalloc_linker_reference(void) {
#define ICON_MDI_ZODIAC_TAURUS "\xf3\xb0\xaa\x87" // U+F0A87 #define ICON_MDI_ZODIAC_TAURUS "\xf3\xb0\xaa\x87" // U+F0A87
#define ICON_MDI_ZODIAC_VIRGO "\xf3\xb0\xaa\x88" // U+F0A88 #define ICON_MDI_ZODIAC_VIRGO "\xf3\xb0\xaa\x88" // U+F0A88
#define ICON_MDI_BLANK "\xef\x9a\x8c" // U+F68C #define ICON_MDI_BLANK "\xef\x9a\x8c" // U+F68C
#line 0 #line 0
// editor_script // editor_script
#define GLEQ_IMPLEMENTATION #define GLEQ_IMPLEMENTATION
#define GlyphSet GlyphSet_ // linux #define GlyphSet GlyphSet_ // linux
#line 1 "3rd_lite_sys_gleq.h" #line 1 "3rd_lite_sys_gleq.h"
/* /*
* GLEQ - A basic event queue for GLFW 3 * GLEQ - A basic event queue for GLFW 3
* Copyright © Camilla Löwy <elmindreda@glfw.org> * Copyright © Camilla Löwy <elmindreda@glfw.org>
@ -340126,8 +340127,8 @@ GLEQDEF void gleqFreeEvent(GLEQevent* event)
#endif /* GLEQ_IMPLEMENTATION */ #endif /* GLEQ_IMPLEMENTATION */
#endif /* GLEQ_HEADER_FILE */ #endif /* GLEQ_HEADER_FILE */
#line 0 #line 0
#line 1 "3rd_lite_sys.h" #line 1 "3rd_lite_sys.h"
// lite editor, platform details // lite editor, platform details
// - rlyeh, public domain // - rlyeh, public domain
@ -340403,8 +340404,8 @@ bottom:;
return rc; return rc;
} }
#line 0 #line 0
#line 1 "3rd_lite.h" #line 1 "3rd_lite.h"
// Copyright (c) 2020 rxi // Copyright (c) 2020 rxi
// //
// Permission is hereby granted, free of charge, to any person obtaining a copy of // Permission is hereby granted, free of charge, to any person obtaining a copy of
@ -341558,11 +341559,11 @@ void lt_tick(struct lua_State *L) {
"end)" "end)"
); );
} }
#line 0 #line 0
#define LIGHTMAPPER_IMPLEMENTATION #define LIGHTMAPPER_IMPLEMENTATION
//#define LM_DEBUG_INTERPOLATION //#define LM_DEBUG_INTERPOLATION
#line 1 "3rd_lightmapper.h" #line 1 "3rd_lightmapper.h"
/*********************************************************** /***********************************************************
* A single header file OpenGL lightmapping library * * A single header file OpenGL lightmapping library *
* https://github.com/ands/lightmapper * * https://github.com/ands/lightmapper *
@ -343344,9 +343345,9 @@ lm_bool lmImageSaveTGAf(const char *filename, const float *image, int w, int h,
} }
#endif // LIGHTMAPPER_IMPLEMENTATION #endif // LIGHTMAPPER_IMPLEMENTATION
#line 0 #line 0
#line 1 "3rd_sdk_steam.h" #line 1 "3rd_sdk_steam.h"
/***************************************************************/ /***************************************************************/
/* */ /* */
/* Only after agreeing to Valves non-disclosure and/or license */ /* Only after agreeing to Valves non-disclosure and/or license */
@ -346462,6 +346463,6 @@ X(void*,SteamInternal_CreateInterface,(const char *ver)) \
X(bool,SteamAPI_IsSteamRunning,()) \ X(bool,SteamAPI_IsSteamRunning,()) \
X(bool,SteamAPI_InitSafe,()) \ X(bool,SteamAPI_InitSafe,()) \
X(void,SteamAPI_RunCallbacks,()) X(void,SteamAPI_RunCallbacks,())
#line 0 #line 0
#endif // V4K_3RD #endif // V4K_3RD

64842
engine/v4k.c

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.