ir,build: pragma support (#97)
Adds support for arbitrary compiler directives. Fixes #15
This commit is contained in:
committed by
GitHub
parent
0bcbe82731
commit
c8004ba627
@@ -118,6 +118,9 @@ func Dereference(ptr gotypes.Component) gotypes.Component { return ctx.Dereferen
|
||||
// Doc sets documentation comment lines for the currently active function.
|
||||
func Doc(lines ...string) { ctx.Doc(lines...) }
|
||||
|
||||
// Pragma adds a compiler directive to the currently active function.
|
||||
func Pragma(directive string, args ...string) { ctx.Pragma(directive, args...) }
|
||||
|
||||
// Attributes sets function attributes for the currently active function.
|
||||
func Attributes(a attr.Attribute) { ctx.Attributes(a) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user