Skip to content
Snippets Groups Projects
Commit 5edd3499 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Slightly more modern way of throwing errors.

Rev: lib/modules/Protocols.pmod/LDAP.pmod/ldap_globals.h:1.17
parent 372c5303
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
// --- Enable run-time error --- // --- Enable run-time error ---
//#define THROW(X) //#define THROW(X)
#define THROW(X) throw(X) #define THROW(X) throw(X)
#define ERROR(X...) THROW (({sprintf (X), backtrace()})) #define ERROR(X...) predef::error (X)
// --- Enable profiling --- // --- Enable profiling ---
//#define DWRITE_PROF(X,Y) werror(sprintf("Protocols.LDAP:Profile: "+X,Y)) //#define DWRITE_PROF(X,Y) werror(sprintf("Protocols.LDAP:Profile: "+X,Y))
#define DWRITE_PROF(X,Y) #define DWRITE_PROF(X,Y)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment