Clapkit
Loading...
Searching...
No Matches
ckMacros.h
Go to the documentation of this file.
1/*
2 *
3 * Clapkit
4 * ----------------------------------------------------------------------
5 * A wrapper for creating a 'generalized' app for Classic MacOS
6 * that (hopefully) can be ported easily to other platforms.
7 *
8 * Macros
9 * ----------------------------------------------------------------------
10 * Things that should (hopefully) make your life easier.
11 * At least when while writing code.
12 *
13 */
14
15#pragma once
16
17#include <stdio.h>
18#include <string.h>
19
23#define CK_UNIMPLEMENTED() ({ CKLog("Unimplemented function"); })
24
25#ifndef MIN
26#define MIN(a, b) ((a) < (b) ? (a) : (b))
27#define MAX(a, b) ((a) > (b) ? (a) : (b))
28#endif
29
30#ifndef LOWORD
31#define LOWORD(l) ((l) & 0xffff)
32#define HIWORD(l) ((l >> 16) & 0xffff)
33#endif