When we changed the C++ API, we forgot to add a compatibility workaround
for functions.inc which had matching constants. Fix that now in
smn_functions.cpp.
Bug: issue #2481
* Update PostgreSQL lib version and fix resource cleanup
- update the bundled PostgreSQL/libpq headers and static libraries to 18.4 (resolve#1802)
- adjust pgsql extension link inputs for the newer libpq split libraries, and drop unsupported macOS pgsql builds
- build connection parameters with instead of manually formatting a connection string
- make own and clear its , preventing leaks when prepared statements are executed repeatedly
- close prepared statements with when statement handles are destroyed
- track copied vs borrowed prepared-statement parameter buffers so borrowed strings/blobs are not freed (resolve#1946)
* Rebuild libs
---------
Co-authored-by: Nicholas Hastings <[email protected]>
This removes the SourcePawn shared library from the distrubtion, and
statically links the VM to sourcemod.logic instead. This means we can
stop designing public APIs that only SourceMod will ever use, since now
SourceMod can just peek directly inside the VM.
We still need a public API for extensions (and the "core" binary). But
that API surface is a lot smaller than what the logic binary needs.
Remove unused DebugReporter::GenerateCodeError function while we're
here, since this will allow removing IPluginDebugInfo.
* Refactor AutoExecConfig to support new cvars
* Fix identation
* Fix cfg recreation neglecting cvars original values
* Get rid of goto
* Resolve psychonic review
* Keep using the old syntax for nullptr
* Minor fixes
* Add check for client status before resetting
* Get rid of unnecessary color reset on beacon remove
* Fix firebomb/timebomb resetting color when effect was not active
* Fix firebomb toggling wrong client's active status
---------
Co-authored-by: Nicholas Hastings <[email protected]>
* Fix OOB dereference in PluginIterator methodmap (#1880)
This prevents the native from returning true when the iterator has already reached the end() of the list, which previously led to a crash when accessing the Plugin property.
* Add defense-in-depth safeguards to CMMPluginIterator
* Update PluginIterator.Next() @error documentation
Reflect the new NativeError thrown when calling Next() on an exhausted iterator.