summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-06 13:37:18 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-07 09:57:24 +0900
commitc490392ee6f9005294bbc7ef14eb5f6b5623dfe5 (patch)
tree2bd7592239f3938675d7da4eaf55d7b9d8e1ecdb /src/lib/eolian_cxx
parent64698daeb5aa5eec5da8cd60ff18c05e2d155102 (diff)
cxx: Fix ifdef protections in function impl
Mote: for protected we should use "protected:" if that is somehow possible.
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/function_definition.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eolian_cxx/grammar/function_definition.hpp b/src/lib/eolian_cxx/grammar/function_definition.hpp
index 714cb1fbda..1c7cf25a16 100644
--- a/src/lib/eolian_cxx/grammar/function_definition.hpp
+++ b/src/lib/eolian_cxx/grammar/function_definition.hpp
@@ -45,12 +45,12 @@ struct function_definition_generator
45 } 45 }
46 46
47 if(f.is_beta && 47 if(f.is_beta &&
48 !as_generator("#ifdef " << *(string << "_") << string << "_" << string << "_BETA\n") 48 !as_generator("#ifdef " << *(string << "_") << string << "_BETA\n")
49 .generate(sink, std::make_tuple(_klass_name.namespaces, _klass_name.eolian_name, suffix), add_upper_case_context(ctx))) 49 .generate(sink, std::make_tuple(_klass_name.namespaces, _klass_name.eolian_name), add_upper_case_context(ctx)))
50 return false; 50 return false;
51 if(f.is_protected && 51 if(f.is_protected &&
52 !as_generator("#ifdef " << *(string << "_") << string << "_" << string << "_PROTECTED\n") 52 !as_generator("#ifdef " << *(string << "_") << string << "_PROTECTED\n")
53 .generate(sink, std::make_tuple(_klass_name.namespaces, _klass_name.eolian_name, suffix), add_upper_case_context(ctx))) 53 .generate(sink, std::make_tuple(_klass_name.namespaces, _klass_name.eolian_name), add_upper_case_context(ctx)))
54 return false; 54 return false;
55 55
56 if(!as_generator 56 if(!as_generator