| 224 | } |
| 225 | |
| 226 | void GetCustomAttributes(Array<MObject*, ArenaAllocation>& result, void* handle, void* getAttributesFunc) |
| 227 | { |
| 228 | MObject** attributes; |
| 229 | int numAttributes; |
| 230 | CallStaticMethod<void, void*, MObject***, int*>(getAttributesFunc, handle, &attributes, &numAttributes); |
| 231 | result.Set(attributes, numAttributes); |
| 232 | MCore::GC::FreeMemory(attributes); |
| 233 | } |
| 234 | |
| 235 | // Structures used to pass information from runtime, must match with the structures in managed side |
| 236 | struct NativeClassDefinitions |