Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const c = @cImport({
- @cInclude("SDL2/SDL.h");
- });
- const std = @import("std");
- pub fn main() void {
- if (c.SDL_Init(c.SDL_INIT_VIDEO) != 0) {
- std.debug.warn("whoops");
- }
- defer c.SDL_Quit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement