1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-03 16:13:22 +08:00

25 Commits

Author SHA1 Message Date
bottiger1
b1a7396112
fix compile errors on 64 bit (#256) 2024-06-21 15:44:27 +00:00
Nick Hastings
732b5b29b5 More mathlib unification with SDK 2013, including 3dnow fixes (#231) 2024-04-21 11:52:42 -04:00
Benoist
8a6d1c6cd2
TF2 win64 + Ambuild tier1/mathlib + long=devil (#198)
* Fix compilation for windows, setup ambuild

* Add built tier1 and mathlib for win64

* Ensure compilation is working on windows and linux

* Add -fPIC

* Add compiled libs, with optimisation enabled

* Added windows lib

* Fix hl2sdk for windows

* Longs are the devil

* Fix up threadtools functions

* Add updated libs

* Rework lib naming, and package script

* Update lib directory according to new packaging

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-03-09 03:57:12 +00:00
Benoist
dcf515fea8
Prepare for TF2 64bits (#127)
* Prepare for 64bits

* Add the dynamic and static librairies

* Delete choreoobjects_x86_64.a

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
2024-01-26 13:19:59 +00:00
Mikusch
9c891b6443
tf2: Add vscript headers (#118)
* Add vscript headers

* Update vscript interface version

* Remove duplicate macro and add CSquirrelVM::ReferenceScope
2022-11-26 17:42:15 +00:00
Nick Hastings
08c1461a88 Further ConVar ABI fixes. 2018-05-05 10:26:01 -04:00
Nick Hastings
6e5b1bf250 Update ICVar, IConVar, and ConVar from SDK 2013.
Includes minor fix-ups, such as not calling change callbacks when new
value matches old value.
2018-05-05 10:01:15 -04:00
Scott Ehlert
7ee1f97dd6 Imported more changes from sdk2013. 2017-05-30 15:22:52 -05:00
Kristian Klausen
a11dd1c078 utlmemory.h: Add missing template parameter (#31) 2017-01-18 17:18:19 -05:00
sigsegv
669d017fda Fix cases where V_swap didn't need the global scope resolution operator 2016-01-24 17:23:29 -08:00
sigsegv
0edbd27fb8 Backport swap() -> V_swap() rename to avoid C++11 ADL ambiguity errors
The swap() function provided in the MathLib header was renamed to V_swap in recent Source SDK versions (e.g. 2013) to avoid causing ambiguity problems with std::swap(). But older SDK versions (such as TF2) lack this change, as they predate it.

The ambiguity between MathLib's swap() and std::swap() causes considerable problems when using newer features of C++ (such as std::unique_ptr) which internally call swap() in an unqualified manner to implement move semantics:

/usr/include/c++/5.2.0/bits/unique_ptr.h:342:6: error: call of overloaded ‘swap(MyType*&, MyType*&)’ is ambiguous
/usr/include/c++/5.2.0/bits/move.h:176:5: note: candidate: void std::swap(_Tp&, _Tp&) [with _Tp = MyType*]
hl2sdk-tf2/public/mathlib/mathlib.h:611:18: note: candidate: void swap(T&, T&) [with T = MyType*]

This patch backports the swap() -> V_swap() rename from the 2013 SDK version to the TF2 SDK version, so that the TF2 SDK can be used in conjunction with C++11 features such as std::unique_ptr without difficulty.

More information on why swap() isn't called in a namespace-qualified manner by standard library functions:
http://en.cppreference.com/w/cpp/language/adl#Notes
2016-01-24 16:44:52 -08:00
Nicholas Hastings
edad9782f1 Remove extra _alligned_malloc. 2015-07-13 19:07:36 -04:00
Nicholas Hastings
1c13e12266 Port KeyValues class from Source SDK 2013. 2015-07-12 15:44:04 -04:00
Scott Ehlert
99bfb50b2b Rebuilt tier1 and mathlib for OS X using clang. 2013-04-27 00:18:49 -05:00
raydan
e181ebc3b3 Added missing virtual dtor to CFunctor (bug 5615, r=psychonic). 2013-02-17 22:05:24 -05:00
Nicholas Hastings
33fbbaccab Changed posix impl of _aligned_malloc to match MemAlloc_Aligned behavior (other than tracking). 2012-10-28 12:05:52 -04:00
Nicholas Hastings
7d37bfc976 Better fix for posix _aligned_malloc in utlmemory, fixing mac support. 2012-10-27 17:41:19 -04:00
Nicholas Hastings
38003f0586 Fix SDK issues with NO_MALLOC_OVERRIDE (bug 5521). 2012-10-26 14:45:40 -04:00
Scott Ehlert
c142a7a0a1 Block out seemingly unused CRefDebug class for clang builds. 2011-06-17 17:41:40 -05:00
Scott Ehlert
3e7f7bdabd Fixed conflict between min/max macros and std::min/max when using GCC >= 4.2. 2011-04-28 01:30:09 -05:00
Scott Ehlert
b9b7f08197 Fixed a clang warning: control may reach end of non-void function [-Wreturn-type] (bug 4877, r=dvander). 2011-04-23 21:25:34 -05:00
Scott Ehlert
b06949c4cc More portions of the SDK compile (and link!) on Mac OS X (bug 4392, r=dvander).
SourceMod compiles and links now. Hurray! Most plugins may also but there may be more work to do.
2010-05-13 04:08:37 -05:00
David Anderson
168e6792f9 Some includes can be used on Mac OS X now (bug 3515, r=ds). 2008-12-22 23:33:59 -05:00
Scott Ehlert
7ff7f366d5 Modified SDK for GCC 4.2 2008-09-15 02:50:57 -05:00
Scott Ehlert
055f5cd168 Added most recent version of unmodified HL2 SDK for Orange Box engine 2008-09-15 01:07:45 -05:00