|
CppInterOp
C++ Language Interoperability Layer
|


Go to the source code of this file.
Functions | |
| CPPINTEROP_API intptr_t | cppinterop_Evaluate (const char *code, bool *HadError) |
| C-ABI overload of Cpp::Evaluate. | |
| CPPINTEROP_API CppInterOpArray | cppinterop_GetClassTemplatedMethods (const char *name, CppConstDeclRef parent) |
Returns the templated method scopes inside parent matching name. | |
| CPPINTEROP_API intptr_t cppinterop_Evaluate | ( | const char * | code, |
| bool * | HadError | ||
| ) |
C-ABI overload of Cpp::Evaluate.
Returns the execution result as a raw intptr_t bit pattern; on parse error or no-value-after- success writes true to *HadError (if non-null) and returns ~0UL. The Box-returning C++ overload is marked NoCWrapper.
Definition at line 60 of file CXCppInterOp.cpp.
References Cpp::Evaluate().
| CPPINTEROP_API CppInterOpArray cppinterop_GetClassTemplatedMethods | ( | const char * | name, |
| CppConstDeclRef | parent | ||
| ) |
Returns the templated method scopes inside parent matching name.
The bool-return-with-vector-outparam shape is not expressible by the tablegen wrapper emitter; callers check arr.size > 0 to detect "no matches".
Definition at line 67 of file CXCppInterOp.cpp.
References Cpp::GetClassTemplatedMethods().