summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/function_registration.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/function_registration.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/function_registration.hh17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/function_registration.hh b/src/bin/eolian_mono/eolian/mono/function_registration.hh
index cdcb903..bef9e21 100644
--- a/src/bin/eolian_mono/eolian/mono/function_registration.hh
+++ b/src/bin/eolian_mono/eolian/mono/function_registration.hh
@@ -1,3 +1,18 @@
1/*
2 * Copyright 2019 by its authors. See AUTHORS.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
1#ifndef EOLIAN_MONO_FUNCTION_REGISTRATION_HH 16#ifndef EOLIAN_MONO_FUNCTION_REGISTRATION_HH
2#define EOLIAN_MONO_FUNCTION_REGISTRATION_HH 17#define EOLIAN_MONO_FUNCTION_REGISTRATION_HH
3 18
@@ -49,7 +64,7 @@ struct function_registration_generator
49 return false; 64 return false;
50 65
51 if(!as_generator( 66 if(!as_generator(
52 indent << "if (methods.FirstOrDefault(m => m.Name == \"" << string << "\") != null)\n" 67 indent << "if (methods.Contains(\"" << string << "\"))\n"
53 << indent << "{\n" 68 << indent << "{\n"
54 << indent << scope_tab << "descs.Add(new EflOpDescription() {" 69 << indent << scope_tab << "descs.Add(new EflOpDescription() {"
55#ifdef _WIN32 70#ifdef _WIN32