Newer
Older
snipet / jpcc / trunk / modules / 00_com / osw / include / osw_base.h
Nomura Kei on 26 Aug 2022 971 bytes old svn data to git
/**
 * @file  osw_base.h
 * @brief osw 基本機能 ヘッダー
 * osw の基本機能をまとめたヘッダーファイルです.
 *
 * Copyright (c)  2003 - 2015  Nomura Kei
 * License : THE MIT License <http://opensource.org/licenses/mit-license.php>
 */
#ifndef OSW_BASE_H
#define OSW_BASE_H



/* -----------------------------------------------------------------------------
 *  未定義変数明示化マクロ
 * -----------------------------------------------------------------------------
 */
#define UNUSED_VARIABLE(val) (void) (val)



/* -----------------------------------------------------------------------------
 *  関数トレース機能
 * -----------------------------------------------------------------------------
 */
#if (OSW_TRACE)
#define osw_trace()	osw_trace_impl(__FILE__, __LINE__, __func__)

void osw_trace_impl(const char* file, int line, const char* func);

#else
#define osw_trace()	((void) 0)


#endif




#endif	/* OSW_BASE_H	*/