Files
kaizen/cmake/test/main.swift
SimoneN64 8821e99ab5 Squashed 'external/SDL/' content from commit f317581c91
git-subtree-dir: external/SDL
git-subtree-split: f317581c91961ee628446886dd4df87e9c16ac79
2024-09-04 22:32:48 +02:00

14 lines
270 B
Swift

/* Contributed by Piotr Usewicz (https://github.com/pusewicz) */
import SDL3
guard SDL_Init(SDL_INIT_VIDEO) else {
fatalError("SDL_Init error: \(String(cString: SDL_GetError()))")
}
var sdlVersion = SDL_GetVersion()
print("SDL version: \(sdlVersion)")
SDL_Quit()