2024-01-07 12:16:17 +01:00
|
|
|
#ifndef SFWL_H
|
|
|
|
#define SFWL_H
|
|
|
|
|
2024-01-20 10:27:23 +01:00
|
|
|
{{FILEINLINE:sfwl/core/version.h}}
|
|
|
|
|
2024-01-07 12:16:17 +01:00
|
|
|
{{FILEINLINE:tools/merger/sfw_readme.inl.h}}
|
2024-01-13 22:26:34 +01:00
|
|
|
{{FILEINLINE:tools/merger/sfw_linceses_core.inl.h}}
|
2024-01-07 12:16:17 +01:00
|
|
|
|
2024-01-19 01:41:39 +01:00
|
|
|
#ifndef _REENTRANT
|
2024-01-07 12:16:17 +01:00
|
|
|
#define _REENTRANT
|
2024-01-19 01:41:39 +01:00
|
|
|
#endif
|
2024-01-07 12:16:17 +01:00
|
|
|
|
|
|
|
#include <float.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
//=================== CORE SECTION ===================
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//no includes
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/int_types.h}}
|
|
|
|
//--STRIP
|
|
|
|
//no includes
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/math_defs.h}}
|
|
|
|
//--STRIP
|
|
|
|
//no includes
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/error_list.h}}
|
|
|
|
//--STRIP
|
|
|
|
//no includes
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/logger.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/int_types.h"
|
|
|
|
//#include "core/error_list.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/typedefs.h}}
|
|
|
|
|
2024-01-20 10:27:23 +01:00
|
|
|
//--STRIP
|
|
|
|
//#include "core/int_types.h"
|
|
|
|
//#include "core/math_defs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/marshalls.h}}
|
2024-01-07 12:16:17 +01:00
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/int_types.h"
|
|
|
|
//--STRIP
|
2024-01-13 19:08:12 +01:00
|
|
|
{{FILE:sfwl/core/sfw_time.h}}
|
2024-01-07 12:16:17 +01:00
|
|
|
//--STRIP
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/safe_refcount.h}}
|
2024-01-09 12:35:07 +01:00
|
|
|
//--STRIP
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//#if !defined(NO_THREADS)
|
|
|
|
//#include "core/safe_refcount.h"
|
|
|
|
//#include <thread>
|
|
|
|
//#endif
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/thread.h}}
|
2024-01-07 12:16:17 +01:00
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/logger.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/error_macros.h}}
|
|
|
|
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/safe_refcount.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/memory.h}}
|
|
|
|
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_list.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/mutex.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_list.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/rw_lock.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/spin_lock.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/mutex.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/thread_safe.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/pcg.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/math_defs.h"
|
|
|
|
//#include "core/pcg.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/random_pcg.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/math_defs.h"
|
|
|
|
//#include "core/random_pcg.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//#include "core/pcg.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/math_funcs.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//Simple almost dependencyless containers
|
|
|
|
//--STRIP
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_list.h"
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//#include "core/safe_refcount.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/cowdata.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/sort_array.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/rb_map.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/rb_set.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "cowdata.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/vmap.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "cowdata.h"
|
|
|
|
//#include "core/sort_array.h"
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/vector.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/vector.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/vset.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/sort_array.h"
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/list.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/vector.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/ring_buffer.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//#include "spin_lock.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/paged_allocator.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/pool_allocator.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//Strings they need vector.h, and cowdata.h
|
|
|
|
//--STRIP
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/char_range.inc}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//#include "core/char_range.inc"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/char_utils.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "cowdata.h"
|
|
|
|
//#include "core/vector.h"
|
|
|
|
//#include "char_utils.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/ustring.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/mutex.h"
|
|
|
|
//#include "core/safe_refcount.h"
|
|
|
|
//#include "core/ustring.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/string_name.h}}
|
|
|
|
|
2024-01-20 10:27:23 +01:00
|
|
|
//--STRIP
|
|
|
|
//#include "core/math_funcs.h"
|
|
|
|
//#include "core/ustring.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/color.h}}
|
2024-01-20 11:14:28 +01:00
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/math_funcs.h"
|
|
|
|
//#include "core/vector2.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/vector2i.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/vector2i.h" // also includes math_funcs and ustring
|
|
|
|
//#include "core/rect2.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/rect2i.h}}
|
2024-01-20 10:27:23 +01:00
|
|
|
|
2024-01-07 12:16:17 +01:00
|
|
|
//--STRIP
|
|
|
|
//Needs ustring.h
|
|
|
|
//--STRIP
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//#include "core/mutex.h"
|
|
|
|
//#include "pool_allocator.h"
|
|
|
|
//#include "rw_lock.h"
|
|
|
|
//#include "core/safe_refcount.h"
|
|
|
|
//#include "core/ustring.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/pool_vector.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/pool_vector.h"
|
|
|
|
//#include "core/sort_array.h"
|
|
|
|
//#include "core/vector.h"
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/tight_local_vector.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/pool_vector.h"
|
|
|
|
//#include "core/sort_array.h"
|
|
|
|
//#include "core/vector.h"
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/local_vector.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//Math classes
|
|
|
|
//--STRIP
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//hashfuncs.h Needs most math classes
|
|
|
|
//--STRIP
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/aabb.h"
|
|
|
|
//#include "core/math_defs.h"
|
|
|
|
//#include "core/math_funcs.h"
|
|
|
|
//#include "core/rect2.h"
|
|
|
|
//#include "core/rect2i.h"
|
|
|
|
//#include "core/vector2.h"
|
|
|
|
//#include "core/vector2i.h"
|
|
|
|
//#include "core/vector3.h"
|
|
|
|
//#include "core/vector3i.h"
|
|
|
|
//#include "core/vector4.h"
|
|
|
|
//#include "core/vector4i.h"
|
|
|
|
//#include "core/string_name.h"
|
|
|
|
//#include "core/ustring.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/hashfuncs.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//Containers that need hashfuncs.h
|
|
|
|
//--STRIP
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/hashfuncs.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/pair.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/hashfuncs.h"
|
|
|
|
//#include "core/list.h"
|
|
|
|
//#include "core/error_macros.h"
|
|
|
|
//#include "core/math_funcs.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//#include "core/ustring.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/og_hash_map.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/list.h"
|
|
|
|
//#include "core/og_hash_map.h"
|
|
|
|
//#include "core/pair.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/ordered_hash_map.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/hashfuncs.h"
|
|
|
|
//#include "paged_allocator.h"
|
|
|
|
//#include "pair.h"
|
|
|
|
//#include "core/math_funcs.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//#include "list.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/hash_map.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/hash_map.h"
|
|
|
|
//#include "core/hashfuncs.h"
|
|
|
|
//#include "core/math_funcs.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/hash_set.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_list.h"
|
|
|
|
//#include "core/ustring.h"
|
|
|
|
//also needs vector
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/file_access.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/error_list.h"
|
|
|
|
//#include "core/ustring.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/dir_access.h}}
|
|
|
|
|
2024-01-20 10:27:23 +01:00
|
|
|
//--STRIP
|
|
|
|
//#include "int_types.h"
|
|
|
|
//#include "core/ustring.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/inet_address.h}}
|
|
|
|
//--STRIP
|
|
|
|
//#include "inet_address.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/socket.h}}
|
|
|
|
|
|
|
|
//--STRIP
|
|
|
|
//#include "core/list.h"
|
|
|
|
//#include "core/math_defs.h"
|
|
|
|
//#include "core/memory.h"
|
|
|
|
//#include "core/mutex.h"
|
|
|
|
//#include "core/typedefs.h"
|
|
|
|
//#include "core/ustring.h"
|
|
|
|
//#include <stdio.h>
|
|
|
|
//Win Only
|
|
|
|
//#include "core/local_vector.h"
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/sub_process.h}}
|
|
|
|
|
2024-01-07 12:16:17 +01:00
|
|
|
//--STRIP
|
|
|
|
//no includes
|
|
|
|
//--STRIP
|
|
|
|
{{FILE:sfwl/core/sfw_core.h}}
|
|
|
|
|
|
|
|
#endif
|