[3543] | 1 | /* $Id: kHlpDefs.h 3543 2007-08-25 06:10:29Z bird $ */
|
---|
| 2 | /** @file
|
---|
| 3 | * kHlpDefs - Helper Definitions.
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | /*
|
---|
| 7 | * Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
|
---|
| 8 | *
|
---|
| 9 | * This file is part of kStuff.
|
---|
| 10 | *
|
---|
| 11 | * kStuff is free software; you can redistribute it and/or modify
|
---|
| 12 | * it under the terms of the GNU Lesser General Public License as published
|
---|
| 13 | * by the Free Software Foundation; either version 2 of the License, or
|
---|
| 14 | * (at your option) any later version.
|
---|
| 15 | *
|
---|
| 16 | * kStuff is distributed in the hope that it will be useful,
|
---|
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | * GNU Lesser General Public License for more details.
|
---|
| 20 | *
|
---|
| 21 | * You should have received a copy of the GNU Lesser General Public License
|
---|
| 22 | * along with kStuff; if not, write to the Free Software
|
---|
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
| 24 | *
|
---|
| 25 | */
|
---|
| 26 |
|
---|
| 27 | #ifndef ___k_kHlpDefs_h___
|
---|
| 28 | #define ___k_kHlpDefs_h___
|
---|
| 29 |
|
---|
| 30 | #include <k/kDefs.h>
|
---|
| 31 |
|
---|
| 32 | /** @defgroup grp_kHlpDefs - Definitions
|
---|
| 33 | * @addtogroup grp_kHlp
|
---|
| 34 | * @{ */
|
---|
| 35 |
|
---|
| 36 | /** @def KHLP_DECL
|
---|
| 37 | * Declares a kHlp function according to build context.
|
---|
| 38 | * @param type The return type.
|
---|
| 39 | */
|
---|
| 40 | #if defined(KHLP_BUILDING_DYNAMIC)
|
---|
| 41 | # define KHLP_DECL(type) K_DECL_EXPORT(type)
|
---|
| 42 | #elif defined(KHLP_BUILT_DYNAMIC)
|
---|
| 43 | # define KHLP_DECL(type) K_DECL_IMPORT(type)
|
---|
| 44 | #else
|
---|
| 45 | # define KHLP_DECL(type) type
|
---|
| 46 | #endif
|
---|
| 47 |
|
---|
| 48 | /** @} */
|
---|
| 49 |
|
---|
| 50 | #endif
|
---|
| 51 |
|
---|