📄 standard.h
字号:
/*Copyright (C) 1994-1995 Apogee Software, Ltd.This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.Modifications for JonoF's port by Jonathon Fowler (jonof@edgenetwk.com)*//********************************************************************** module: STANDARD.H author: James R. Dose date: May 25, 1994 Header containing standard definitions. (c) Copyright 1994 James R. Dose. All Rights Reserved.**********************************************************************/#ifndef __STANDARD_H#define __STANDARD_Htypedef int boolean;typedef int errorcode;#ifndef TRUE #define TRUE ( 1 == 1 ) #define FALSE ( !TRUE )#endifenum STANDARD_ERRORS { Warning = -2, FatalError = -1, Success = 0 };#define BITSET( data, bit ) \ ( ( ( data ) & ( bit ) ) == ( bit ) )#define ARRAY_LENGTH( array ) \ ( sizeof( array ) / sizeof( ( array )[ 0 ] ) )#define WITHIN_BOUNDS( array, index ) \ ( ( 0 <= ( index ) ) && ( ( index ) < ARRAY_LENGTH( array ) ) )#define FOREVER for( ; ; )#ifdef NDEBUG #define DEBUGGING 0#else #define DEBUGGING 1#endif#define DEBUG_CODE \ if ( DEBUGGING == 0 ) \ { \ } \ else#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -