Newer
Older
c-interpreter / modules / libkc / include / kc.h
Nomura Kei on 9 Aug 2023 1 KB UPDATE
/**
 * @file kc.h
 * @brief Kantan C Library 共通ヘッダファイル。
 * @copyright  2001 - 2023  Nomura Kei
 * @depends
 *	kc_windows.h
 */
#ifndef KC_H
#define KC_H



/**
 * 指定された変数が未使用であることを明示します。
 * @param val 未使用変数
 */
#define UNUSED_VARIABLE(val) (void)(val)



#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
// =============================================================================
//  C11 以降
// =============================================================================
#include <stddef.h>
#include <stdbool.h>


#elif defined(__cplusplus) && (__cplusplus >= 201703L)
// =============================================================================
//  C++17 以降対応
// =============================================================================
#include <cstddef>


#else
// =============================================================================
//  C11, C++17 より古い場合は、ERROR
// =============================================================================
#error "suuports C11, C++17 or later"


#endif	// C11, ERROR


#include <kc_windows.h>


#endif	// KC_H