You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

492 lines
20 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: acestl/acestl.hpp
  3. *
  4. * Purpose: Root header for the ACESTL libraries. Performs various compiler
  5. * and platform discriminations, and definitions of types.
  6. *
  7. * Created: 15th September 2004
  8. * Updated: 10th August 2009
  9. *
  10. * Home: http://stlsoft.org/
  11. *
  12. * Copyright (c) 2004-2009, Matthew Wilson and Synesis Software
  13. * All rights reserved.
  14. *
  15. * Redistribution and use in source and binary forms, with or without
  16. * modification, are permitted provided that the following conditions are met:
  17. *
  18. * - Redistributions of source code must retain the above copyright notice, this
  19. * list of conditions and the following disclaimer.
  20. * - Redistributions in binary form must reproduce the above copyright notice,
  21. * this list of conditions and the following disclaimer in the documentation
  22. * and/or other materials provided with the distribution.
  23. * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of
  24. * any contributors may be used to endorse or promote products derived from
  25. * this software without specific prior written permission.
  26. *
  27. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  28. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  29. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  30. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  31. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  32. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  33. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  34. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  35. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  36. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  37. * POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. * ////////////////////////////////////////////////////////////////////// */
  40. #ifndef ACESTL_INCL_ACESTL_HPP_ACESTL
  41. #define ACESTL_INCL_ACESTL_HPP_ACESTL
  42. /* File version */
  43. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  44. # define ACESTL_VER_ACESTL_HPP_ACESTL_MAJOR 1
  45. # define ACESTL_VER_ACESTL_HPP_ACESTL_MINOR 7
  46. # define ACESTL_VER_ACESTL_HPP_ACESTL_REVISION 4
  47. # define ACESTL_VER_ACESTL_HPP_ACESTL_EDIT 40
  48. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  49. /** \file acestl/acestl.hpp
  50. *
  51. * \brief [C++ only] The root header for the \ref group__project__acestl "ACESTL" project.
  52. */
  53. /* /////////////////////////////////////////////////////////////////////////
  54. * ACESTL version
  55. *
  56. * The libraries version information is comprised of major, minor and revision
  57. * components.
  58. *
  59. * Each release of the libraries will bear a different version, and that version
  60. * will also have its own symbol: Version 1.0.1 specifies _ACESTL_VER_1_0_1.
  61. */
  62. /** \def _ACESTL_VER_MAJOR
  63. * The major version number of ACESTL
  64. *
  65. * A change to the major version component implies that a dramatic change
  66. * has occurred in the libraries, such that considerable changes to source
  67. * dependent on previous versions would need to be effected.
  68. */
  69. /** \def _ACESTL_VER_MINOR
  70. * The minor version number of ACESTL
  71. *
  72. * A change to the minor version component imply that a significant change
  73. * has occurred to the libraries, either in the addition of new functionality
  74. * or in the destructive change to one or more components such that
  75. * recompilation and code change may be necessitated.
  76. */
  77. /** \def _ACESTL_VER_REVISION
  78. * The revision version number of ACESTL
  79. *
  80. * A change to the revision version component imply that a bug has been
  81. * fixed. Dependent code should be recompiled in order to pick up the
  82. * changes.
  83. */
  84. /** \def _ACESTL_VER
  85. * The current composite version number of ACESTL
  86. *
  87. * Thus the symbol _ACESTL_VER may be compared meaningfully with a specific
  88. * version symbol, e.g.# if _ACESTL_VER >= _ACESTL_VER_1_0_1
  89. */
  90. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  91. # define _ACESTL_VER_0_9_1 0x00000901 /*!< Version 0.9.1 */
  92. # define _ACESTL_VER_1_0_1 0x00010001 /*!< Version 1.0.1 */
  93. # define _ACESTL_VER_1_0_2 0x00010002 /*!< Version 1.0.2 */
  94. # define _ACESTL_VER_1_0_3 0x00010003 /*!< Version 1.0.3 */
  95. # define _ACESTL_VER_1_0_4 0x00010004 /*!< Version 1.0.4 */
  96. # define _ACESTL_VER_1_1_1 0x00010101 /*!< Version 1.1.1 (STLSoft 1.9.1) */
  97. # define _ACESTL_VER_1_1_2 0x00010102 /*!< Version 1.1.2 (STLSoft 1.9.25) */
  98. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  99. #define _ACESTL_VER_MAJOR 1
  100. #define _ACESTL_VER_MINOR 1
  101. #define _ACESTL_VER_REVISION 2
  102. #define _ACESTL_VER _ACESTL_VER_1_1_2
  103. /* /////////////////////////////////////////////////////////////////////////
  104. * Includes
  105. */
  106. #ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT
  107. # include <stlsoft/stlsoft.h>
  108. #endif /* !STLSOFT_INCL_STLSOFT_H_STLSOFT */
  109. #ifndef STLSOFT_INCL_ACE_H_LOG_MSG
  110. # define STLSOFT_INCL_ACE_H_LOG_MSG
  111. # include <ace/Log_Msg.h>
  112. #endif /* !STLSOFT_INCL_ACE_H_LOG_MSG */
  113. #ifndef STLSOFT_INCL_ACE_H_VERSION
  114. # define STLSOFT_INCL_ACE_H_VERSION
  115. # include <ace/Version.h>
  116. #endif /* !STLSOFT_INCL_ACE_H_VERSION */
  117. /* Intel is super pernickety about conversions, so we need to bring out the union_cast. */
  118. #if defined(STLSOFT_COMPILER_IS_INTEL)
  119. # ifndef STLSOFT_INCL_STLSOFT_CONVERSION_HPP_UNION_CAST
  120. # include <stlsoft/conversion/union_cast.hpp>
  121. # endif /* !STLSOFT_INCL_STLSOFT_CONVERSION_HPP_UNION_CAST */
  122. #endif /* compiler */
  123. /* /////////////////////////////////////////////////////////////////////////
  124. * STLSoft version compatibility
  125. */
  126. #if !defined(_STLSOFT_VER_1_9_1_B41) || \
  127. _STLSOFT_VER < _STLSOFT_VER_1_9_1_B41
  128. # error This version of the ACESTL libraries requires STLSoft version 1.9.1 beta 41, or later
  129. #endif /* _STLSOFT_VER */
  130. /* /////////////////////////////////////////////////////////////////////////
  131. * ACE version
  132. */
  133. /** \def ACESTL_ACE_VERSION
  134. *
  135. * Composite version describing the version of ACE being compiled. The
  136. * upper 16 bits correspond to ACE_MAJOR_VERSION. The lower 16 bits
  137. * correspond to ACE_MINOR_VERSION.
  138. */
  139. #define ACESTL_ACE_VERSION ((ACE_MAJOR_VERSION << 16) | ACE_MINOR_VERSION)
  140. /* /////////////////////////////////////////////////////////////////////////
  141. * Proper C++ casting
  142. */
  143. #ifdef __cplusplus
  144. # ifdef ACE_WIN32
  145. # undef ACE_INVALID_HANDLE
  146. # if defined(STLSOFT_COMPILER_IS_INTEL)
  147. # define ACE_INVALID_HANDLE stlsoft_ns_qual(union_cast)<HANDLE>(-1)
  148. # else /* ? compiler */
  149. # define ACE_INVALID_HANDLE reinterpret_cast<HANDLE>(-1)
  150. # endif /* compiler */
  151. # endif /* ACE_WIN32 */
  152. #endif /* __cplusplus */
  153. /* /////////////////////////////////////////////////////////////////////////
  154. * Compiler compatibility
  155. *
  156. * Currently the only compilers supported by the ACESTL libraries are
  157. *
  158. */
  159. /* /////////////////////////////////////////////////////////////////////////
  160. * Contract Enforcement
  161. *
  162. * The macro acestl_assert provides standard debug-mode assert functionality.
  163. */
  164. /** \brief Defines a runtime assertion
  165. *
  166. * \ingroup group__library__macros__assertion
  167. *
  168. * \param expr Must be non-zero, or an assertion will be fired
  169. */
  170. #define ACESTL_ASSERT(expr) STLSOFT_ASSERT(expr)
  171. /** \brief Defines a runtime assertion, with message
  172. *
  173. * \ingroup group__library__macros__assertion
  174. *
  175. * \param expr Must be non-zero, or an assertion will be fired
  176. * \param msg The literal character string message to be included in the assertion
  177. */
  178. #define ACESTL_MESSAGE_ASSERT(msg, expr) STLSOFT_MESSAGE_ASSERT(msg, expr)
  179. /** \brief Defines a compile-time assertion
  180. *
  181. * \ingroup group__library__macros__assertion
  182. *
  183. * \param expr Must be non-zero, or compilation will fail
  184. */
  185. #define ACESTL_STATIC_ASSERT(expr) STLSOFT_STATIC_ASSERT(expr)
  186. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  187. # define acestl_assert(expr) ACESTL_ASSERT(expr)
  188. # define acestl_message_assert(msg, expr) ACESTL_MESSAGE_ASSERT(msg, expr)
  189. # define acestl_static_assert(expr) ACESTL_STATIC_ASSERT(expr)
  190. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  191. /* /////////////////////////////////////////////////////////////////////////
  192. * Namespace
  193. *
  194. * The ACESTL components are contained within the acestl namespace. This is
  195. * usually an alias for stlsoft::acestl_project,
  196. *
  197. * When compilers support namespaces they are defined by default. They can be
  198. * undefined using a cascasing system, as follows:
  199. *
  200. * If _STLSOFT_NO_NAMESPACES is defined, then _ACESTL_NO_NAMESPACES is defined.
  201. *
  202. * If _ACESTL_NO_NAMESPACES is defined, then _ACESTL_NO_NAMESPACE is defined.
  203. *
  204. * If _ACESTL_NO_NAMESPACE is defined, then the ACESTL constructs are defined
  205. * in the global scope.
  206. *
  207. * If _STLSOFT_NO_NAMESPACES, _ACESTL_NO_NAMESPACES and _ACESTL_NO_NAMESPACE are
  208. * all undefined but the symbol _STLSOFT_NO_NAMESPACE is defined (whence the
  209. * namespace stlsoft does not exist), then the ACESTL constructs are defined
  210. * within the acestl namespace. The definition matrix is as follows:
  211. *
  212. * _STLSOFT_NO_NAMESPACE _ACESTL_NO_NAMESPACE acestl definition
  213. * --------------------- -------------------- -----------------
  214. * not defined not defined = stlsoft::acestl_project
  215. * not defined defined not defined
  216. * defined not defined acestl
  217. * defined defined not defined
  218. *
  219. *
  220. *
  221. * The macro acestl_ns_qual() macro can be used to refer to elements in the
  222. * ACESTL libraries irrespective of whether they are in the
  223. * stlsoft::acestl_project (or acestl) namespace or in the global namespace.
  224. *
  225. * Furthermore, some compilers do not support the standard library in the std
  226. * namespace, so the acestl_ns_qual_std() macro can be used to refer to elements
  227. * in the ACESTL libraries irrespective of whether they are in the std namespace
  228. * or in the global namespace.
  229. */
  230. /* No STLSoft namespaces means no ACESTL namespaces */
  231. #ifdef _STLSOFT_NO_NAMESPACES
  232. # define _ACESTL_NO_NAMESPACES
  233. #endif /* _STLSOFT_NO_NAMESPACES */
  234. /* No ACESTL namespaces means no acestl namespace */
  235. #ifdef _ACESTL_NO_NAMESPACES
  236. # define _ACESTL_NO_NAMESPACE
  237. #endif /* _ACESTL_NO_NAMESPACES */
  238. #ifndef _ACESTL_NO_NAMESPACE
  239. # if defined(_STLSOFT_NO_NAMESPACE) || \
  240. defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
  241. /* There is no stlsoft namespace, so must define ::acestl */
  242. /** \brief The <code class="namespace">acestl</code> namespace contains all components
  243. * in the \ref group__project__acestl "ACESTL" project.
  244. *
  245. * By default, the <code>acestl</code> namespace is actually an alias for
  246. * the namespace <code>stlsoft::acestl_project</code>, which is where all
  247. * the \ref group__project__acestl "ACESTL" components actually reside. This
  248. * measure allows all components within the main the
  249. * \ref group__project__stlsoft "STLSoft" project (which are defined within
  250. * the <code>stlsoft</code> namespace) to be visible to all components
  251. * "within" the <code>acestl</code> namespace. (Otherwise, there would be a
  252. * whole lot of onerous qualification throughout the code of all
  253. * \ref group__projects "sub-projects".)
  254. *
  255. * \note If either/both of the symbols <code>_STLSOFT_NO_NAMESPACES</code>
  256. * and <code>_ACESTL_NO_NAMESPACE</code> are defined, all
  257. * \ref group__project__acestl "ACESTL" components will be defined in the
  258. * global namespace. Conversely, if the <code>_STLSOFT_NO_NAMESPACE</code>
  259. * symbol (not to be confused with the
  260. * <code>_STLSOFT_NO_NAMESPACES</code> symbol!) is defined - meaning that
  261. * all \ref group__project__stlsoft "main project" components are to be
  262. * defined in the global namespace, and <code>_ACESTL_NO_NAMESPACE</code>
  263. * is <b>not</b> defined, then all \ref group__project__acestl "ACESTL"
  264. * components will be defined within a bona fide <code>acestl</code>
  265. * namespace.
  266. *
  267. * \note This is a vestige of compatibility with compilers with
  268. * no (or no sensible) namespace support that is maintained for reasons of
  269. * backwards compatiblity and because it is, in <i>rare circumstances</i>, a
  270. * useful facility.
  271. */
  272. namespace acestl
  273. {
  274. # else
  275. /* Define stlsoft::acestl_project */
  276. namespace stlsoft
  277. {
  278. namespace acestl_project
  279. {
  280. # endif /* _STLSOFT_NO_NAMESPACE */
  281. #else
  282. stlsoft_ns_using(move_lhs_from_rhs)
  283. #endif /* !_ACESTL_NO_NAMESPACE */
  284. /** \def acestl_ns_qual(x)
  285. * Qualifies with <b>acestl::</b> if ACESTL is using namespaces or, if not, does not qualify
  286. */
  287. /** \def acestl_ns_using(x)
  288. * Declares a using directive (with respect to <b>acestl</b>) if ACESTL is using namespaces or, if not, does nothing
  289. */
  290. #ifndef _ACESTL_NO_NAMESPACE
  291. # define acestl_ns_qual(x) ::acestl::x
  292. # define acestl_ns_using(x) using ::acestl::x;
  293. #else /* ? _ACESTL_NO_NAMESPACE */
  294. # define acestl_ns_qual(x) x
  295. # define acestl_ns_using(x)
  296. #endif /* !_ACESTL_NO_NAMESPACE */
  297. /** \def acestl_ns_qual_std(x)
  298. * Qualifies with <b>std::</b> if ACESTL is being translated in the context of the standard library being within the <b>std</b> namespace or, if not, does not qualify
  299. */
  300. /** \def acestl_ns_using_std(x)
  301. * Declares a using directive (with respect to <b>std</b>) if ACESTL is being translated in the context of the standard library being within the <b>std</b> namespace or, if not, does nothing
  302. */
  303. #ifdef STLSOFT_CF_std_NAMESPACE
  304. # define acestl_ns_qual_std(x) ::std::x
  305. # define acestl_ns_using_std(x) using ::std::x;
  306. #else /* ? STLSOFT_CF_std_NAMESPACE */
  307. # define acestl_ns_qual_std(x) x
  308. # define acestl_ns_using_std(x)
  309. #endif /* !STLSOFT_CF_std_NAMESPACE */
  310. /* /////////////////////////////////////////////////////////////////////////
  311. * Typedefs
  312. *
  313. * The ACESTL uses a number of typedefs to aid in compiler-independence in the
  314. * libraries' main code.
  315. */
  316. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  317. typedef stlsoft_ns_qual(ss_char_a_t) as_char_a_t; //!< Ansi char type
  318. typedef stlsoft_ns_qual(ss_char_w_t) as_char_w_t; //!< Unicode char type
  319. typedef stlsoft_ns_qual(ss_sint8_t) as_sint8_t; //!< 8-bit signed integer
  320. typedef stlsoft_ns_qual(ss_uint8_t) as_uint8_t; //!< 8-bit unsigned integer
  321. typedef stlsoft_ns_qual(ss_int16_t) as_int16_t; //!< 16-bit integer
  322. typedef stlsoft_ns_qual(ss_sint16_t) as_sint16_t; //!< 16-bit signed integer
  323. typedef stlsoft_ns_qual(ss_uint16_t) as_uint16_t; //!< 16-bit unsigned integer
  324. typedef stlsoft_ns_qual(ss_int32_t) as_int32_t; //!< 32-bit integer
  325. typedef stlsoft_ns_qual(ss_sint32_t) as_sint32_t; //!< 32-bit signed integer
  326. typedef stlsoft_ns_qual(ss_uint32_t) as_uint32_t; //!< 32-bit unsigned integer
  327. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  328. typedef stlsoft_ns_qual(ss_int64_t) as_int64_t; //!< 64-bit integer
  329. typedef stlsoft_ns_qual(ss_sint64_t) as_sint64_t; //!< 64-bit signed integer
  330. typedef stlsoft_ns_qual(ss_uint64_t) as_uint64_t; //!< 64-bit unsigned integer
  331. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  332. typedef stlsoft_ns_qual(ss_int_t) as_int_t; //!< integer
  333. typedef stlsoft_ns_qual(ss_sint_t) as_sint_t; //!< signed integer
  334. typedef stlsoft_ns_qual(ss_uint_t) as_uint_t; //!< unsigned integer
  335. typedef stlsoft_ns_qual(ss_long_t) as_long_t; //!< long
  336. typedef stlsoft_ns_qual(ss_bool_t) as_bool_t; //!< bool
  337. typedef stlsoft_ns_qual(ss_size_t) as_size_t; //!< size
  338. typedef stlsoft_ns_qual(ss_ptrdiff_t) as_ptrdiff_t; //!< ptr diff
  339. typedef stlsoft_ns_qual(ss_streampos_t) as_streampos_t; //!< streampos
  340. typedef stlsoft_ns_qual(ss_streamoff_t) as_streamoff_t; //!< streamoff
  341. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  342. #ifndef _ACESTL_NO_NAMESPACE
  343. typedef as_char_a_t char_a_t; //!< Ansi char type
  344. typedef as_char_w_t char_w_t; //!< Unicode char type
  345. //typedef as_int8_t int8_t; //!< 8-bit integer
  346. typedef as_sint8_t sint8_t; //!< 8-bit signed integer
  347. typedef as_uint8_t uint8_t; //!< 8-bit unsigned integer
  348. typedef as_int16_t int16_t; //!< 16-bit integer
  349. typedef as_sint16_t sint16_t; //!< 16-bit signed integer
  350. typedef as_uint16_t uint16_t; //!< 16-bit unsigned integer
  351. typedef as_int32_t int32_t; //!< 32-bit integer
  352. typedef as_sint32_t sint32_t; //!< 32-bit signed integer
  353. typedef as_uint32_t uint32_t; //!< 32-bit unsigned integer
  354. # ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  355. typedef as_int64_t int64_t; //!< 64-bit integer
  356. typedef as_sint64_t sint64_t; //!< 64-bit signed integer
  357. typedef as_uint64_t uint64_t; //!< 64-bit unsigned integer
  358. # endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  359. //typedef as_short_t short_t; //!< short integer
  360. typedef as_int_t int_t; //!< integer
  361. typedef as_sint_t sint_t; //!< signed integer
  362. typedef as_uint_t uint_t; //!< unsigned integer
  363. typedef as_long_t long_t; //!< long integer
  364. //typedef as_byte_t byte_t; //!< Byte
  365. typedef as_bool_t bool_t; //!< bool
  366. # if !defined(STLSOFT_COMPILER_IS_DMC)
  367. typedef as_streampos_t streampos_t; //!< streampos
  368. typedef as_streamoff_t streamoff_t; //!< streamoff
  369. # endif /* compiler */
  370. #endif /* !_ACESTL_NO_NAMESPACE */
  371. /* /////////////////////////////////////////////////////////////////////////
  372. * Values
  373. *
  374. * Since the boolean type may not be supported natively on all compilers, the
  375. * values of true and false may also not be provided. Hence the values of
  376. * as_true_v and as_false_v are defined, and are used in all code.
  377. */
  378. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  379. #define as_true_v ss_true_v
  380. #define as_false_v ss_false_v
  381. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  382. /* /////////////////////////////////////////////////////////////////////////
  383. * Code modification macros
  384. */
  385. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  386. /* Exception signatures. */
  387. # define acestl_throw_0() stlsoft_throw_0()
  388. # define acestl_throw_1(x1) stlsoft_throw_1(x1)
  389. # define acestl_throw_2(x1, x2) stlsoft_throw_2(x1, x2)
  390. # define acestl_throw_3(x1, x2, x3) stlsoft_throw_3(x1, x2, x3)
  391. # define acestl_throw_4(x1, x2, x3, x4) stlsoft_throw_4(x1, x2, x3, x4)
  392. # define acestl_throw_5(x1, x2, x3, x4, x5) stlsoft_throw_5(x1, x2, x3, x4, x5)
  393. # define acestl_throw_6(x1, x2, x3, x4, x5, x6) stlsoft_throw_6(x1, x2, x3, x4, x5, x6)
  394. # define acestl_throw_7(x1, x2, x3, x4, x5, x6, x7) stlsoft_throw_7(x1, x2, x3, x4, x5, x6, x7)
  395. # define acestl_throw_8(x1, x2, x3, x4, x5, x6, x7, x8) stlsoft_throw_8(x1, x2, x3, x4, x5, x6, x7, x8)
  396. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  397. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  398. # define ACESTL_NUM_ELEMENTS(ar) STLSOFT_NUM_ELEMENTS(ar)
  399. # define acestl_num_elements(ar) ACESTL_NUM_ELEMENTS(ar)
  400. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  401. /** \brief [DEPRECATED] Destroys the given instance \c p of the given type (\c t and \c _type)
  402. *
  403. * \deprecated This is <b>heavily</b> deprecated in favour of \ref STLSOFT_DESTROY_INSTANCE().
  404. */
  405. #define acestl_destroy_instance(t, _type, p) STLSOFT_DESTROY_INSTANCE(t, _type, p)
  406. /** \brief [DEPRECATED] Generates an opaque type with the name \c _htype
  407. *
  408. * \deprecated This is <b>heavily</b> deprecated in favour of \ref STLSOFT_GEN_OPAQUE().
  409. */
  410. #define acestl_gen_opaque(_htype) STLSOFT_GEN_OPAQUE(_htype)
  411. /* ////////////////////////////////////////////////////////////////////// */
  412. #ifndef _ACESTL_NO_NAMESPACE
  413. # if defined(_STLSOFT_NO_NAMESPACE) || \
  414. defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
  415. } // namespace acestl
  416. # else
  417. } // namespace acestl_project
  418. } // namespace stlsoft
  419. namespace acestl = ::stlsoft::acestl_project;
  420. # endif /* _STLSOFT_NO_NAMESPACE */
  421. #endif /* !_ACESTL_NO_NAMESPACE */
  422. /* /////////////////////////////////////////////////////////////////////////
  423. * Inclusion
  424. */
  425. #ifdef STLSOFT_CF_PRAGMA_ONCE_SUPPORT
  426. # pragma once
  427. #endif /* STLSOFT_CF_PRAGMA_ONCE_SUPPORT */
  428. /* ////////////////////////////////////////////////////////////////////// */
  429. #endif /* !ACESTL_INCL_ACESTL_HPP_ACESTL */
  430. /* ///////////////////////////// end of file //////////////////////////// */