section

When applied to a global variable or function, causes it to be emitted to a non-standard object file/executable section.

The target platform might impose certain restrictions on the format for section names.

  1. struct section
    version(LDC)
    struct section {}
  2. auto section(string sectionName)
  3. struct section

Members

Variables

name
string name;
Undocumented in source.

Examples

import numem.core.attributes;

@section(".mySection") int myGlobal;

Meta