1357057bd8
common: add GCC malloc and warn_unused_result attribute macro
2024-09-30 04:00:28 +03:00
842e494fa6
common: add macro for simultaneously checking data type size for ILP32 and LP64
2024-08-21 12:00:35 +03:00
d56e53a347
Replace hardcoded functions names by __func__ macro
...
* while we're here, fix some possible bugs
* and fix -Wformat=2
s/__FUNCTION__/__func__/g
awawawa
2024-06-19 06:53:42 +03:00
41ed920d35
common: xash3d_types: fix build
2024-06-09 09:16:07 +03:00
767556ccad
engine: temporarily disable ASan in MSG_WriteUBitLong (evil!)
2024-06-09 07:03:59 +03:00
2ad6511c31
public: add Q_memor routine that binary OR's data from src to dst
...
Supposed to be compiled with optimizations enabled.
2024-05-29 05:41:33 +03:00
0cfb354374
common: add RENAME_SYMBOL macro that renames symbol for compatibility with nasty mods (also reformat this portion, while we're at it)
2024-04-28 06:59:18 +03:00
e81b5144b3
engine: common: zone: use realloc for managing mem pools
...
rearrange data in memheader_s to avoid unnecessary paddings
2024-04-19 00:14:26 +03:00
95a75465c9
common: remove FORCEINLINE and NOINLINE macros, we don't use them in engine
2024-02-22 15:43:37 +03:00
edc08e39ef
common: move FORCEINLINE from port.h to xash3d_types.h, alongside other compiler-specific attributes
2024-01-24 20:51:34 +03:00
ba9bb70924
common: remove unused gamma definitions
2024-01-13 05:03:58 +03:00
2ae038c01c
common: fix broken STATIC_ASSERT macro again
2024-01-12 23:00:56 +03:00
f705a7cd26
common: xash3d_types: another attempt to properly check static asserts availability
2023-12-28 17:32:07 +03:00
9d8ba03f5e
common: xash3d_types: fix static_assert macro
2023-12-27 03:10:41 +03:00
683c4874f8
common: add ALLOC_CHECK macro that enables attribute alloc_size on GCC that allows to prevent suspicious allocation sizes
2023-12-09 19:00:25 +03:00
597429cf41
engine, filesystem: unify GetNativeObject between all the APIs. Allow getting filesystem APIs through GetNativeObject
2023-10-31 21:25:11 +03:00
mittorn
f2c080e736
gl2shim: fix broken matrix update when fog attribute enabled (32 bit shift overflow)
2023-10-30 22:34:34 +03:00
02b8037f33
common: xash3d_types: add NONNULL attribute
2023-10-22 17:37:09 +03:00
3765686077
public: make va() buffer size public
2023-03-11 05:28:17 +03:00
Xav101
9466461ce0
engine: preliminary support for SGI IRIX ( #1211 )
...
* Added definitions for IRIX
* Patchset to get dedicated server to compile on IRIX.
* Cleaned up debug statements in wscript
* Potential bug in IRIX implementation of isnan? For now just use the portable macro.
* Include the platform port files in the build
* Temporary execution script for setting appropriate library search paths to the right locations in the build directory. This should probably get replaced with a more permanent script at some point which lives in the same directory as the normal xash binary, or be replaced by a solution that sets the rpath during config or modifies rpath during install.
* Clean up formatting and remove unneeded debugging statements
* Added GPL copyright notice and description
* Moved to irix platform folder and edited script
* Re-introduced _inline macro
* Replace spaces with tabs
Co-authored-by: Xav101 <xaviernye@msn.com>
2023-01-14 09:35:30 +03:00
6e179346c9
common: redefine poolhandle_t back to pointer for 32-bit systems
2022-12-19 18:36:31 +03:00
a52d901f25
common: add STATIC_ASSERT macro
...
We're trying to guess if we have C11 static_assert defined in assert.h
otherwise use good ol' trick with negative array
2022-09-20 21:55:32 +03:00
3eb4862794
common: remove unneeded typedef for wad file type
2022-08-01 15:06:54 +03:00
5d4f8373c4
common: fix usage of __has_builtin for old GCC releases
2022-06-29 03:53:36 +03:00
b9b8b0521b
common: add unlikely()/likely() macros
2022-06-29 02:36:39 +03:00
6f36edfd16
engine: various const qualifier fixes
2022-05-29 04:22:43 +03:00
9ce8edcb38
public: moved compiler attributes to xash3d_types.h
2022-05-28 17:57:43 +03:00
fb8791529e
common: include build.h in xash3d_types.h
2021-12-23 18:46:40 +03:00
764ef93984
common: add fs_size_t typedef, for read()/write() return value
2021-12-23 01:21:33 +03:00
9313f7e80e
engine: replace pool pointer by pool handle
2021-06-07 02:33:15 +03:00
8d942bcc86
xash3d_types: start refactoring engine to use stdint.h types
2020-04-19 13:02:51 +03:00
6953e829c4
lowmemory: prevent redefines
2019-11-04 22:34:08 +07:00
0e7013eeb0
lowmemory: tune XASH_LOW_MEMORY=1 not breaking multiplayer
2019-11-04 19:58:45 +07:00
cb8e0a50bc
lowmemory: reduce MAX_QPATH
2019-10-29 11:30:57 +07:00
148846c02d
common: explicitly cast literals to floats
2019-10-18 16:46:54 +03:00
Mr0maks
1cc2ec9095
filesystem: zip: codestyle 2
2019-05-27 23:02:38 +05:00
Mr0maks
85b5b4e965
filesystem: add support for zip files
2019-05-24 21:13:03 +05:00
ab7a67464b
engine: fix long<->int conversion UBs
2019-05-02 19:05:09 +03:00
3fef353291
android: initial port
2019-05-02 18:07:03 +03:00
6c006e087d
common: don't use SDL headers and types in refdll, if for some reason dll wants it
2019-03-30 03:06:23 +03:00
4880ca3ca2
engine: move EXPORT definition to xash3d_types
2019-03-20 02:38:37 +03:00
7aa7f4dbbd
engine: fix broken win32 types after moving more definitions to xash3d_types.h
2019-03-20 01:18:26 +03:00
4247af8fa8
Reduce engine dependencies. crtlib/mathlib/matrixlib now can be built standalone
2019-03-16 11:18:43 +07:00
574f03c139
ref: initial engine to ref API draft, not compiling, work in progress [ci skip]
2019-02-24 18:45:44 +03:00
e193ac2c04
ref: more @mittorn 's changes on RefAPI
2019-02-23 21:49:46 +03:00
25325e6150
Port common.h and system.h. Add backends.h, defaults.h, port.h, xash3d_types.h from fork
2018-04-13 19:56:43 +03:00