github.com/gotranspile/cxgo@v0.3.8-0.20240118201721-29871598a6a2/libs/stdarg.go (about)

     1  package libs
     2  
     3  const (
     4  	StdargH = "stdarg.h"
     5  )
     6  
     7  func init() {
     8  	RegisterLibrary(StdargH, func(c *Env) *Library {
     9  		// all types and method are define as builtins, so only macros here
    10  		l := &Library{
    11  			Imports: map[string]string{
    12  				"libc": RuntimeLibc,
    13  			},
    14  		}
    15  		return l
    16  	})
    17  }