Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
2e3c8113
Commit
2e3c8113
authored
19 years ago
by
llea
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
eba29f5f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common.h
+0
-56
0 additions, 56 deletions
src/common.h
with
0 additions
and
56 deletions
src/common.h
deleted
100644 → 0
+
0
−
56
View file @
eba29f5f
/*
Type definitions and helper macros which aren't part of Standard C++
This will need to be edited on systems where 'char', 'short' and 'int'
have sizes different from 8, 16 and 32 bits.
*/
#ifndef __COMMON_H__
#define __COMMON_H__
// #define DEBUG /**< Defined when compiling code for debugging */
/*
Basic integer types.
Note 'int' is assumed to be in 2s complement format and at least 32 bits in size
*/
typedef
unsigned
char
uint8
;
/**< An 8 bit unsigned integer */
typedef
unsigned
short
uint16
;
/**< An 16 bit unsigned integer */
typedef
unsigned
int
uint32
;
/**< An 32 bit unsigned integer */
typedef
signed
char
int8
;
/**< An 8 bit signed integer (2s complement) */
typedef
signed
short
int16
;
/**< An 16 bit signed integer (2s complement) */
typedef
signed
int
int32
;
/**< An 32 bit signed integer (2s complement) */
typedef
unsigned
int
uint
;
/**< An unsigned integer or at least 32 bits */
#ifndef NULL
#define NULL 0
/**< Used to represent a null pointer type */
#endif
#ifdef _MSC_VER // Compiling for Microsoft Visual C++
#define DEBUGGER { _asm int 3 }
/**< Invoke debugger */
#define IMPORT __declspec(dllexport)
/**< Mark a function which is to be imported from a DLL */
#define EXPORT __declspec(dllexport)
/**< Mark a function to be exported from a DLL */
#define ASSERT(c) { if(!(c)) DEBUGGER; }
/**< Assert that expression 'c' is true */
#else // Not compiling for Microsoft Visual C++ ...
#define DEBUGGER
/**< Invoke debugger */
#define IMPORT
/**< Mark a function which is to be imported from a DLL */
#define EXPORT
/**< Mark a function to be exported from a DLL */
//#define ASSERT(c) /**< Assert that expression 'c' is true */
#endif
#ifdef DEBUG
#define ASSERT_DEBUG(c) ASSERT(c)
/**< Assert that expression 'c' is true (when compiled for debugging)*/
#else
#define ASSERT_DEBUG(c)
#endif
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment