Om
operator_back_push_operation.cpp
Go to the documentation of this file.
1 
15 #ifndef Om_Language_Operation_OperatorBackPushOperation_
16 
18 
19  #ifdef Om_Macro_Test_
20 
21  #ifndef Om_Macro_Precompilation_
22 
23  #include "boost/test/unit_test.hpp"
24 
25  #endif
26 
27 namespace Om {
28 
29  namespace Language {
30 
31  namespace Operation {
32 
33  BOOST_AUTO_TEST_SUITE(OperatorBackPushOperationTest)
34 
35  BOOST_AUTO_TEST_CASE(DefinitionTest) {
36  BOOST_CHECK_EQUAL(
37  "{[operator]<-}",
38  System::Get().Evaluate("drop find {[operator]<-} system")
39  );
40  }
41 
42  BOOST_AUTO_TEST_SUITE_END()
43 
44  }
45 
46  }
47 
48 }
49 
50  #endif
51 
52 #else
53 
56 
57 // MARK: - Om::Language::Operation::OperatorBackPushOperation
58 
59  #define Type_ \
60  Om::Language::Operation::OperatorBackPushOperation
61 
62 // MARK: public (static)
63 
64 inline char const * Type_::GetName() {
66 }
67 
68 inline void Type_::Give(Evaluation & theEvaluation) {
69  OperatorFrontPushOperation::Give(theEvaluation);
70  SwapOperation::Give(theEvaluation);
71 }
72 
73  #undef Type_
74 
75 #endif
static System & Get()
The Om library.
Definition: code_point.hpp:26
std::auto_ptr< TheGiveable > Give(TheGiveable &)
Calls Move on the object.
#define Om_Language_Operation_OperatorBackPushOperation_GetName_()
Om header file.