Skip to content

add custom gmlc pragmas #108

Description

@tinkerer-red

It would be nice if gmlc had a few specific pragmas much like Shady has gpu directives.

  1. "NoOp" : prevents any and all optimizations in the function, or script file all together, if defined in a function, effects all sub functions as well.
  2. "CompileTimeConstant" : a function would be defined as expandable to the compile time constant add(1, 2) would just be replaced entirely with the return of the function 3.
  3. "ForceInLine" : this is actually already a pragma in gml, which usually doesnt do much, however i could actually force inline it most of the time.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions