mirror of
https://github.com/fadden/ciderpress.git
synced 2024-11-26 17:49:21 +00:00
27 lines
656 B
C
27 lines
656 B
C
/*
|
|
* CiderPress
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
* See the file LICENSE for distribution terms.
|
|
*/
|
|
/*
|
|
* Standard stuff.
|
|
*/
|
|
#ifndef UTIL_FADDENSTD_H
|
|
#define UTIL_FADDENSTD_H
|
|
|
|
#define NELEM(x) ((int) (sizeof(x) / sizeof(x[0])))
|
|
|
|
/*
|
|
* Declare copy construction and operator=. Put this in a private section
|
|
* of a class declaration to prevent objects from being copied.
|
|
*/
|
|
#define DECLARE_COPY_AND_OPEQ(_TYPE) \
|
|
_TYPE(const _TYPE&); \
|
|
_TYPE& operator= (const _TYPE&);
|
|
|
|
// Windows equivalents
|
|
#define strcasecmp stricmp
|
|
#define strncasecmp strnicmp
|
|
|
|
#endif /*UTIL_FADDENSTD_H*/
|