Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kAssemblyOf | ( |  | SYMBOL | ) | kAssemblyOf_(SYMBOL)

Returns the kAssembly object associated with the specified assembly symbol.

This macro is used to access assembly information by compile-time symbol name. E.g.

#include <kApi/kApiLib.h>
void PrintCoreAssemblyInfo()
{
kAssembly assembly = kAssemblyOf(kApiLib);
printf("Assembly name: %s\n", kAssembly_Name(assembly));
printf("Type count: %u\n", (k32u) kAssembly_TypeCount(assembly));
}

Use of this macro requires that the header file defining the specified assembly symbol has been included. For example, kAssemblyOf(kApiLib) requires inclusion of <kApi/kApiLib.h>

Parameters

  SYMBOL | Assembly symbol, such as kApiLib.

Returns
  kAssembly object representing metadata about the specified assembly.