Skip to content
Snippets Groups Projects
Commit d1c5a723 authored by Tomasz Grabiec's avatar Tomasz Grabiec
Browse files

Cleanup stubbing.hh

parent be3e55d6
No related branches found
No related tags found
No related merge requests found
...@@ -18,10 +18,11 @@ ...@@ -18,10 +18,11 @@
} \ } \
} while (0) } while (0)
#define WARN(msg) DO_ONCE(debug("WARNING: unimplemented " msg)) #define WARN(msg) debug("WARNING: " msg)
#define WARN_ONCE(msg) DO_ONCE(WARN(msg))
#define UNIMPLEMENTED(msg) do { \ #define UNIMPLEMENTED(msg) do { \
WARN(msg "\n"); \ WARN("unimplemented " msg "\n"); \
abort(); \ abort(); \
} while (0) } while (0)
...@@ -32,9 +33,7 @@ ...@@ -32,9 +33,7 @@
} }
#define UNIMPL(decl) decl { UNIMPLEMENTED(#decl); } #define UNIMPL(decl) decl { UNIMPLEMENTED(#decl); }
#define IGN(decl) decl { WARN(#decl " (continuing)"); }
#define WARN_STUBBED() DO_ONCE(debug("%s() stubbed\n", __func__)) #define WARN_STUBBED() DO_ONCE(debug("%s() stubbed\n", __func__))
#endif
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment