summaryrefslogtreecommitdiff
path: root/src/include/synext_macro.hpp
diff options
context:
space:
mode:
authorJohn Hodge (bugs) <tpg@mutabah.net>2017-07-06 17:41:10 +0800
committerJohn Hodge (bugs) <tpg@mutabah.net>2017-07-06 17:41:10 +0800
commit48e2c4973d5401c9f7d0ee2bac22ac6015744961 (patch)
treeb93fb21b85343633e2d0c00c42ea7a388bb6f883 /src/include/synext_macro.hpp
parentce3d36a90b9efd11c94f9084b5e727d65b6509a7 (diff)
parentc4e88b3c49736e71534c918a83956885c052beb8 (diff)
downloadmrust-48e2c4973d5401c9f7d0ee2bac22ac6015744961.tar.gz
Merge branch 'master' of https://github.com/thepowersgang/mrustc
# Conflicts: # src/trans/codegen_c.cpp
Diffstat (limited to 'src/include/synext_macro.hpp')
-rw-r--r--src/include/synext_macro.hpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/include/synext_macro.hpp b/src/include/synext_macro.hpp
index c109b56e..0359d508 100644
--- a/src/include/synext_macro.hpp
+++ b/src/include/synext_macro.hpp
@@ -31,19 +31,19 @@ extern void Register_Synext_Macro_Static(MacroDef* def);
struct MacroDef
{
- MacroDef* prev;
- ::std::string name;
- ::std::unique_ptr<ExpandProcMacro> def;
- MacroDef(::std::string name, ::std::unique_ptr<ExpandProcMacro> def) :
- name(::std::move(name)),
- def(::std::move(def)),
- prev(nullptr)
- {
- Register_Synext_Macro_Static(this);
- }
+ MacroDef* prev;
+ ::std::string name;
+ ::std::unique_ptr<ExpandProcMacro> def;
+ MacroDef(::std::string name, ::std::unique_ptr<ExpandProcMacro> def) :
+ prev(nullptr),
+ name(::std::move(name)),
+ def(::std::move(def))
+ {
+ Register_Synext_Macro_Static(this);
+ }
};
-#define STATIC_MACRO(ident, _handler_class) static MacroDef s_register_##_handler_class(ident, ::std::unique_ptr<ExpandProcMacro>(new _handler_class()));
+#define STATIC_MACRO(ident, _handler_class) static MacroDef s_register_##_handler_class(ident, ::std::unique_ptr<ExpandProcMacro>(new _handler_class()));
#endif