unify include guard defines, __$FILENAME__

without the underscores these clogged up the namespace for autocompleation which was annoying.
This commit is contained in:
Campbell Barton
2012-02-17 18:59:41 +00:00
parent 99d0ba6299
commit 2b7ca2304a
657 changed files with 1669 additions and 1675 deletions

View File

@@ -25,8 +25,8 @@
*/
#ifndef MEM_ALLOCATOR_H
#define MEM_ALLOCATOR_H
#ifndef __MEM_ALLOCATOR_H__
#define __MEM_ALLOCATOR_H__
#include <stddef.h>
#include "guardedalloc/MEM_guardedalloc.h"
@@ -89,4 +89,4 @@ struct MEM_Allocator
}
};
#endif // MEM_ALLOCATOR_H
#endif // __MEM_ALLOCATOR_H__

View File

@@ -25,8 +25,8 @@
*/
#ifndef MEM_CACHELIMITER_H
#define MEM_CACHELIMITER_H
#ifndef __MEM_CACHELIMITER_H__
#define __MEM_CACHELIMITER_H__
/**
* @section MEM_CacheLimiter
@@ -63,7 +63,7 @@
template<class T>
class MEM_CacheLimiter;
#ifndef __MEM_cache_limiter_c_api_h_included__
#ifndef __MEM_CACHELIMITERC_API_H__
extern "C" {
extern void MEM_CacheLimiter_set_maximum(size_t m);
extern size_t MEM_CacheLimiter_get_maximum();
@@ -201,4 +201,4 @@ private:
MEM_CacheLimiter_DataSize_Func getDataSize;
};
#endif // MEM_CACHELIMITER_H
#endif // __MEM_CACHELIMITER_H__

View File

@@ -25,8 +25,8 @@
*/
#ifndef MEM_CACHELIMITERC_API_H
#define MEM_CACHELIMITERC_API_H
#ifndef __MEM_CACHELIMITERC_API_H__
#define __MEM_CACHELIMITERC_API_H__
#ifdef __cplusplus
extern "C" {
@@ -44,10 +44,10 @@ typedef void(*MEM_CacheLimiter_Destruct_Func)(void*);
/* function used to measure stored data element size */
typedef size_t(*MEM_CacheLimiter_DataSize_Func) (void*);
#ifndef MEM_CACHELIMITER_H
#ifndef __MEM_CACHELIMITER_H__
extern void MEM_CacheLimiter_set_maximum(size_t m);
extern int MEM_CacheLimiter_get_maximum(void);
#endif // MEM_CACHELIMITER_H
#endif /* __MEM_CACHELIMITER_H__ */
/**
* Create new MEM_CacheLimiter object
* managed objects are destructed with the data_destructor
@@ -145,4 +145,4 @@ extern void * MEM_CacheLimiter_get(MEM_CacheLimiterHandleC * handle);
#endif
#endif // MEM_CACHELIMITERC_API_H
#endif // __MEM_CACHELIMITERC_API_H__

View File

@@ -34,8 +34,8 @@
* Declaration of MEM_NonCopyable class.
*/
#ifndef NAN_INCLUDED_NonCopyable_h
#define NAN_INCLUDED_NonCopyable_h
#ifndef __MEM_NONCOPYABLE_H__
#define __MEM_NONCOPYABLE_H__
/**
* Simple class that makes sure sub classes cannot

View File

@@ -35,8 +35,8 @@
* @author Laurence
*/
#ifndef NAN_INCLUDED_MEM_RefCountPtr_h
#define NAN_INCLUDED_MEM_RefCountPtr_h
#ifndef __MEM_REFCOUNTPTR_H__
#define __MEM_REFCOUNTPTR_H__
#include <stdlib.h> // for NULL !

View File

@@ -34,8 +34,8 @@
* Declaration of MEM_RefCounted class.
*/
#ifndef MEM_REFCOUNTED_H
#define MEM_REFCOUNTED_H
#ifndef __MEM_REFCOUNTED_H__
#define __MEM_REFCOUNTED_H__
/**
* An object with reference counting.
@@ -112,5 +112,5 @@ inline int MEM_RefCounted::decRef()
return m_refCount;
}
#endif // MEM_REFCOUNTED_H
#endif // __MEM_REFCOUNTED_H__

View File

@@ -34,8 +34,8 @@
* Interface for C access to functionality relating to shared objects in the foundation library.
*/
#ifndef MEM_REFCOUNTEDC_API_H
#define MEM_REFCOUNTEDC_API_H
#ifndef __MEM_REFCOUNTEDC_API_H__
#define __MEM_REFCOUNTEDC_API_H__
/** A pointer to a private object. */
typedef struct MEM_TOpaqueObject* MEM_TObjectPtr;
@@ -75,4 +75,4 @@ extern int MEM_RefCountedDecRef(MEM_TRefCountedObjectPtr shared);
}
#endif
#endif // MEM_REFCOUNTEDC_API_H
#endif // __MEM_REFCOUNTEDC_API_H__

View File

@@ -35,8 +35,8 @@
* @author Laurence
*/
#ifndef NAN_INCLUDED_MEM_SmartPtr_h
#define NAN_INCLUDED_MEM_SmartPtr_h
#ifndef __MEM_SMARTPTR_H__
#define __MEM_SMARTPTR_H__
#include <stdlib.h> // for NULL !