ARB
Main Page
Namespaces
Classes
Files
File List
File Members
ARBDB
gb_ta.h
Go to the documentation of this file.
1
// =============================================================== //
2
// //
3
// File : gb_ta.h //
4
// Purpose : //
5
// //
6
// Institute of Microbiology (Technical University Munich) //
7
// http://www.arb-home.de/ //
8
// //
9
// =============================================================== //
10
11
#ifndef GB_TA_H
12
#define GB_TA_H
13
14
#ifndef GB_MAIN_H
15
#include "
gb_main.h
"
16
#endif
17
#ifndef GB_DATA_H
18
#include "
gb_data.h
"
19
#endif
20
21
inline
void
GB_test_transaction
(
GB_MAIN_TYPE
*Main) {
22
if
(Main->
get_transaction_level
() == 0) {
23
GBK_terminate
(
"No running transaction"
);
24
}
25
}
26
inline
void
GB_test_transaction
(
GBDATA
*gbd) {
GB_test_transaction
(
GB_MAIN
(gbd)); }
27
inline
void
GB_test_transaction
(
GBCONTAINER
*gbc) {
GB_test_transaction
(
GB_MAIN
(gbc)); }
28
29
#else
30
#error gb_ta.h included twice
31
#endif // GB_TA_H
GB_MAIN
GB_MAIN_TYPE * GB_MAIN(GBDATA *gbd)
Definition:
gb_data.h:291
GBDATA
Definition:
gb_data.h:129
GB_MAIN_TYPE
Definition:
gb_main.h:87
gb_main.h
GBK_terminate
void GBK_terminate(const char *error) __ATTR__NORETURN
Definition:
arb_msg.cxx:509
GBCONTAINER
Definition:
gb_data.h:240
GB_MAIN_TYPE::get_transaction_level
int get_transaction_level() const
Definition:
gb_main.h:177
GB_test_transaction
void GB_test_transaction(GB_MAIN_TYPE *Main)
Definition:
gb_ta.h:21
gb_data.h
Generated by
1.8.8