12-tower-of-hanoi/general.h
github-classroom[bot] 87dcb960bf
Initial commit
2025-01-14 11:07:40 +00:00

21 lines
649 B
C

/*----------------------------------------------------------
* HTBLA-Leonding
* ---------------------------------------------------------
* Exercise Number: n/a
* Title: general.h
* Author: P. Bauer
* Date: n/a
* ----------------------------------------------------------
* Description:
* General usable definitions.
* ----------------------------------------------------------
*/
#ifndef ___GENERAL_H
#define ___GENERAL_H
/** Convenience macro do get maximum of two numbers */
#define MAX(x, y) ((x) > (y) ? (x) : (y))
/** Convenience macro do get maximum of two numbers */
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif