Skip to content

Latest commit

 

History

History
42 lines (35 loc) · 917 Bytes

README.md

File metadata and controls

42 lines (35 loc) · 917 Bytes

S1P7C

A C99/C11 single file header for creating normal windows/winform api calls especially with many defaults

#include "../s1p7c.h"
#include <stdio.h>

spcfn_window(wndproc, h, m, w, l) {
    (void)h;
    (void)w;
    (void)l;
    if (m == WM_LBUTTONDOWN) {
        MessageBox(0, "Hello", 0, 16);
        return TRUE;
    }
    return FALSE;
}

int main() {
    spcg_class(w) {
        w->lpfnWndProc = wndproc;
    }
    spcg_window(w, SPC_DEFAULT) {
        w->lpWindowName = "Hello world";
    }
    return (int)spc_loop_basic();
}

Who's like-minded?

Single header, whole implementation.

  1. https://github.com/nothings/stb
  2. https://github.com/randrew/layout
  3. https://github.com/vurtun/nuklear
  4. https://github.com/sheredom/utf8.h
  5. https://github.com/sheredom/json.h
  6. https://github.com/richgel999/miniz
  7. https://github.com/dr-soft/miniaudio