void addCallingConventionAnnotation(Function originalFunction, ModifiableElement target) { Convention.Style cc = null; if (originalFunction.hasModifier(ModifierType.__stdcall)) { cc = Convention.Style.StdCall; } else if (originalFunction.hasModifier(ModifierType.__fastcall)) { cc = Convention.Style.FastCall; } else if (originalFunction.hasModifier(ModifierType.__thiscall)) { cc = Convention.Style.ThisCall; } else if (originalFunction.hasModifier(ModifierType.__pascal)) { cc = Convention.Style.Pascal; } if (cc != null) { target.addAnnotation(new Annotation(typeRef(Convention.class), enumRef(cc))); } }
void addCallingConventionAnnotation(Function originalFunction, ModifiableElement target) { Convention.Style cc = null; if (originalFunction.hasModifier(ModifierType.__stdcall)) { cc = Convention.Style.StdCall; } else if (originalFunction.hasModifier(ModifierType.__fastcall)) { cc = Convention.Style.FastCall; } else if (originalFunction.hasModifier(ModifierType.__thiscall)) { cc = Convention.Style.ThisCall; } else if (originalFunction.hasModifier(ModifierType.__pascal)) { cc = Convention.Style.Pascal; } if (cc != null) { target.addAnnotation(new Annotation(typeRef(Convention.class), enumRef(cc))); } }