Lumiera  0.pre.03
»edit your freedom«
test-scope-invalid.hpp
Go to the documentation of this file.
1 /*
2  TEST-SCOPE-INVALID.hpp - helper for placement scope and scope stack tests
3 
4  Copyright (C)
5  2010, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
20 #ifndef MOBJECT_SESSION_TEST_SCOPE_INVALID_H
21 #define MOBJECT_SESSION_TEST_SCOPE_INVALID_H
22 
23 
26 
27 
28 
29 namespace steam {
30 namespace mobject {
31 namespace session {
32 namespace test {
33 
34 
35  namespace { // nifty subversive test helper...
36 
37  Scope const&
39  {
45  struct Ambush
46  {
49  PlacementMO::ID derailed_;
50  };
51 
52  static Ambush _shady_scope_;
53  return *reinterpret_cast<Scope*> (&_shady_scope_);
54  }
55  }
56 
57 
58 
59 }}}} // namespace steam::mobject::session::test
60 #endif
Definition: run.hpp:40
Core abstraction: placement of a media object into session context.
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
A Placement scope within the high-level-model.
Definition: scope.hpp:69