mirror of
				https://github.com/GayPizzaSpecifications/pork.git
				synced 2025-11-03 17:39:38 +00:00 
			
		
		
		
	ffi example: use c as library specifier
This commit is contained in:
		@ -1,8 +1,8 @@
 | 
				
			|||||||
func malloc(size)
 | 
					func malloc(size)
 | 
				
			||||||
  native ffi "libc.dylib:malloc:void*"
 | 
					  native ffi "c:malloc:void*"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func free(pointer)
 | 
					func free(pointer)
 | 
				
			||||||
  native ffi "libc.dylib:free:void"
 | 
					  native ffi "c:free:void"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export func main() {
 | 
					export func main() {
 | 
				
			||||||
  while true {
 | 
					  while true {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user