OSSIA
Open Scenario System for Interactive Application
ossia-max/src/assert.hpp
1 #pragma once
2 #include "ext.h"
3 #include "ext_obex.h"
4 
5 #include <rapidjson/stringbuffer.h>
6 
7 namespace ossia
8 {
9 namespace max_binding
10 {
11 
12 struct oassert
13 {
14  t_object m_object;
15  t_symbol* m_name;
16 
17  t_jrgba m_color;
18 
19  enum Status
20  {
21  NORUN = -1,
22  FAIL,
23  SUCCESS
24  } m_status;
25 
26  void* m_dumpout{};
27 
28  void update_color();
29  void save_color();
30  rapidjson::StringBuffer create_report();
31 
32  static void in_long(oassert* x, long argc);
33  static void reset(oassert* x);
34  static void free(oassert* x);
35  static void closebang(oassert* x);
36  static t_max_err
37  notify(oassert* x, t_symbol* s, t_symbol* msg, void* sender, void* data);
38 
39  static void assist(oassert* x, void* b, long m, long a, char* s);
40 };
41 
42 } // namespace max
43 } // namespace ossia
44 
45 extern "C" {
46 void* ossia_assert_create(t_symbol* s, long argc, t_atom* argv);
47 }
Definition: git_info.h:7