Created
July 28, 2019 05:32
-
-
Save Diltsman/b7a18134a7c95e771e4fa307411a7f9a to your computer and use it in GitHub Desktop.
wrapping function in function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn interupt_handler(comptime func: fn () void) nakedcc fn () void { | |
return nakedcc fn () void { | |
func(); | |
}; | |
} |
It didn't like the semicolon after the function. Removing the semicolon gave this error:
error: expected type 'type', found 'nakedcc fn() void'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this work?