1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-01 13:24:25 +01:00
Commit Graph

53 Commits

Author SHA1 Message Date
Pavol Marko
a42da91655 Modified test1.cpp a little bit so that it tests the const attribute.
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40291
2006-09-04 13:44:00 +00:00
Pavol Marko
f7172629fb Fixed explicit qualification in sourcehook.cpp, updated Makefile for new shworker ( =P ), generated new sourcehook.h
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40252
2006-08-09 07:42:16 +00:00
Pavol Marko
00ab84ba4f fixed location of testrefret.cpp and added forgotten typename keywords
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40251
2006-08-09 07:25:48 +00:00
Pavol Marko
6a15c59cce Added support for functions returning references; added TestRefRet, fixed typos in sourcehook_impl.h
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40250
2006-08-09 06:46:11 +00:00
Scott Ehlert
97084c161b For some reason I have MSVC8-ified shworker and the sourcehook test program (which passes 100% btw :o)
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40239
2006-07-25 04:34:49 +00:00
Pavol Marko
45e23f32cb Added manual recalls: RETURN_META_(VALUE_)MNEWPARAMS
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40212
2006-06-08 18:34:18 +00:00
Pavol Marko
c6c4c28db3 Fixed SourceHook::CVector::resize, hopefully fixed callclass crashbug, add vector test to TestList
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40205
2006-05-19 13:57:04 +00:00
Pavol Marko
2b3d8002f1 Added manual callclasses
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40200
2006-05-14 18:29:35 +00:00
Pavol Marko
3e860a89cc whoops, forgot the varargs/overload test (test2)
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40199
2006-05-13 18:23:25 +00:00
Pavol Marko
de5e02e6aa _snprintf defined to snprintf on linux (should it be the other way round)
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40198
2006-05-13 18:09:58 +00:00
Pavol Marko
9c3b9c4bb2 rewritten sh's template files to use new shworker syntax, fixed sh_call. tbh, i'm good
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40197
2006-05-13 17:57:35 +00:00
Pavol Marko
3ea2f023e1 h-hello? new feature: RETURN_META_(VALUE_)NEWPARAMS now also works in post handlers!
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40180
2006-02-05 20:24:58 +00:00
David Anderson
b6f713be5f experimental patch for unhook exclusivity bug
added multi-hook single-remove test cases (crummy but works)

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40178
2006-01-24 20:02:19 +00:00
Pavol Marko
1a1366323e linux/gcc/32bit compatibility
----------------------------------------------------------------------

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40165
2005-12-23 23:15:18 +00:00
Pavol Marko
27de459d8f Added insert(iterator where, const T &what) to sh_list and simplified it on the occasion, hook managers now have (optional) version numbers, everything somehow works! Also changed _NEWPARAMS macro syntax a bit
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40164
2005-12-23 23:00:55 +00:00
Pavol Marko
9eb35c8830 One bugfix, addition of META_RETURN_(VALUE_)NEWPARAMS (implemented using recalls), tests now support compiling against an older version of sourcehook.h (through the sourcehook_test.h file) while main.cpp which now also acts as a CSourceHookImpl factory compiles against the new version.
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40163
2005-12-23 11:58:11 +00:00
Pavol Marko
e704486223 Added test for manual hooks
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40159
2005-12-10 22:43:51 +00:00
Pavol Marko
8cc68b35fb Added manual hooks. I hope that I haven't broken binary compatibility - someone might want to test it.
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40158
2005-12-10 22:37:53 +00:00
David Anderson
386eef09d3 Fixed various memory leaks
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40152
2005-12-06 06:01:16 +00:00
Pavol Marko
f3fb7f304d :D
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40138
2005-10-15 17:55:31 +00:00
Pavol Marko
0886e3fca4 Oh noes!
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40136
2005-10-14 21:05:55 +00:00
Pavol Marko
35e29f15a8 Faluco added new FastDelegate version, added more tests to testreentr
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40135
2005-10-14 20:57:43 +00:00
Pavol Marko
1904372f67 sh_stack now works if assert is disabled (stupid me), simple reentrancy test, META_IFACEPTR takes a type argument
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40134
2005-10-14 17:45:36 +00:00
Pavol Marko
19000cb24b Updated stack + added simple stack test
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40130
2005-10-13 20:46:52 +00:00
Pavol Marko
17aa1b4c3f Untested reentrancy support; TODO: Test sh_stack and reentrancy extensively!
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40129
2005-10-12 20:25:15 +00:00
Pavol Marko
36dda69d9d Partial fix
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40122
2005-10-05 21:51:02 +00:00
Pavol Marko
b5b686a519 msvc/win32 compatibility
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40120
2005-10-03 18:31:44 +00:00
Pavol Marko
5744176211 Got rid of ^M ( ! )
Removed the weirdest ModuleInMemory test which was causing it to fail on amd64

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40119
2005-10-03 17:39:40 +00:00
Pavol Marko
2790931701 CHANGES!
sh_memory.h: Added ModuleInMemory; first checks /proc/self/maps OR /proc/curproc/map; if not available tries DS's sigsegv trapping method
sh_tinyhash: Added simple erase function(s)
test/Makefile: New makefile
Changed internal interface: sourcehook.hxx now doesn't need to know about implementation details like vectors etc.

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40118
2005-10-03 17:20:22 +00:00
David Anderson
3130242ca8 Fixed destructor to free all items properly
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40116
2005-09-26 16:05:07 +00:00
Pavol Marko
e242aa662d Better Makefile
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40114
2005-09-24 15:56:40 +00:00
Pavol Marko
46e9986a0e SourceHook tests pass again! Added test for list (and a small bit of tinyhash). Woot.
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40112
2005-09-23 20:14:10 +00:00
David Anderson
4f07756795 Correct spacing!
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40101
2005-09-13 16:47:42 +00:00
David Anderson
ead774778f std::vector -> SourceHook::CVector
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40100
2005-09-11 23:24:18 +00:00
David Anderson
ac1ea74510 Changed to namespaces
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4099
2005-08-12 17:44:53 +00:00
David Anderson
f73ef50b79 Initial step towards no STL - added replacement for std::list
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4097
2005-08-12 17:33:31 +00:00
Pavol Marko
1c1b3953a3 Added TestBail
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4076
2005-05-27 21:39:30 +00:00
Pavol Marko
818c3990e9 Possible fix for MSVC 7.1 SH_CALL on varargs
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4063
2005-05-05 21:02:31 +00:00
Pavol Marko
9a5437c0f1 More verbosity, gcc/linux/amd64 compatibility
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4062
2005-05-05 14:43:40 +00:00
Pavol Marko
3c82560621 Added test4.cpp for plugin managment system testing, added -v parameter for verbose output on test fail
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4061
2005-05-05 14:00:08 +00:00
Pavol Marko
a5b89f545c Linux/GCC/32 compatibility
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4060
2005-05-05 13:13:16 +00:00
Pavol Marko
4dc4ed7a2b Added code for proper handling of thisptr adjustors, added new test, version info, more options for GetFuncInfo
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4059
2005-05-05 10:40:47 +00:00
Pavol Marko
e175a7db5c Fixes
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4051
2005-05-01 18:04:18 +00:00
Pavol Marko
9bbbea6c9e Vafmt works now
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4050
2005-05-01 14:30:52 +00:00
Pavol Marko
9fb8a3e891 linux/gcc/32bit compatibility
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4049
2005-05-01 12:36:48 +00:00
Pavol Marko
211535d433 Fixed RemoveHook + minor changes
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4048
2005-05-01 09:55:51 +00:00
Pavol Marko
373a6f228f New test
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4047
2005-04-30 19:10:07 +00:00
Pavol Marko
3234d2b79c Fixes
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4046
2005-04-30 19:09:51 +00:00
Pavol Marko
9ab8eae041 Initial checkin
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4044
2005-04-30 15:52:26 +00:00
Pavol Marko
2a777754e6 Some fixes, new test system
--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4043
2005-04-30 15:48:46 +00:00