Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type INTERFACE_MakeContextCurrent interface{
- MakeContextCurrent(/**VOID**/)(/**VOID**/)
- }
- //:Assert Function:
- func PAW_NOT_NIL(
- //:paw: "Probably A Window"
- paw INTERFACE_MakeContextCurrent ,
- //:on error message:
- err_msg string,
- ){
- switch v := paw.(type){
- case *glfw.Window:
- if(nil==v){ panic("[PAWERR]"+err_msg); }
- return;
- default:
- panic("[PAW_NOT_NIL:UnsuporrtedType]");
- }
- panic("[PAWERR:ExpectDeadCodeLine]");
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement