Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While trying to include IVP in my project(https://github.com/RaphaelIT7/gmod-holylib) I encountered a few things which caused issues on Linux or when IVP was combined with the SourceSDK.
What I changed:
[+] Added
IVP_NO_PERFORMANCE_TIMER
define when the performance timer is not wanted[+] Added
IVP_NO_DEBUGMANAGER
define when the debug manager is not wanted- Also changed
IVP_IFDEBUG
and addedIVP_DEBUGCODE
for it's implementation.[+] Added missing
isnan
&_finite
definitions for Linux intoivp_physics.hxx
[#] Improved Linux support
- added ifdef checks for windows includes & directX functions
[#] Changed
IVP_VHash::hash_index
- Fixed the recently added compile error/the two if statements
- Merged both versions of it into a single one
[#] renamed
intp
tohk_intp
(same withuintp
)- Solved compile issues when combined with the sourcesdk where
intp
was already defined/different.[#] Changed some
asserts
toHK_ASSERT
- assert wasn't usable everywhere while
HK_ASSERT
is.[#] Fixed a infinite loop on linux
-
hk_Memory::memset
andhk_Memory::memcpy
would call themself recursively until it crashed.[#] Added
get_controller_name
to all controllers for debugging.- previously they would show as
sys:unknown
which isn't useful at all.[#] Changed all
IVP_IF
toIVP_IFDEBUG
orIVP_DEBUGCODE
if they used the debug manager.- This solved some crashes when the debug manager was previously disabled.
[-] Removed
IVP_Friction_System::sum_energy_destroyed
variable since its fully unused.