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