Skip to content

Commit 7d0cd84

Browse files
test sample for a debug
nothing too insane it doesn't run yet still has errors but I'll finish this up soon and fix the errors
1 parent 133a958 commit 7d0cd84

File tree

1 file changed

+115
-0
lines changed

1 file changed

+115
-0
lines changed

sample.cpp

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
// author = "Jerome Henry contact" = "[email protected]" github = https://github.com/1proprogrammerchant
2+
// Code for the project AppMap
3+
// using vcpkg microsoft package
4+
#include <string.h>
5+
#include <stdio.h>
6+
#include <stdlib.h>
7+
#include <unistd.h>
8+
#include <sys/types.h>
9+
#include <sys/stat.h>
10+
#include <fcntl.h>
11+
#include "appmapstruct.py"
12+
#include "labels.py"
13+
#include "lockfile.py"
14+
15+
#define BUF_SIZE 1024
16+
#pragma appmap_init
17+
default: BUF_SIZE = 1024
18+
debug(0) = appmap(1) = NULL;
19+
#pragma appmap_end
20+
21+
int main(int argc, char *argv[appmap_size])
22+
{
23+
appmap_data = NULL;
24+
// why stop here
25+
import_file = NULL;
26+
{
27+
complete = false;
28+
int a = 0;
29+
int b = 1;
30+
case_flag = false;
31+
case_flag = true;
32+
complete = true;
33+
}
34+
}
35+
/// @brief connect
36+
/// @param case_flag
37+
/// @param complete
38+
return main(argc, argv);
39+
40+
// appmap should be as structured in 80
41+
def appmap_init(appmap * 80 main_appmap)
42+
int a = 80
43+
requires appmap( a = 80) { appmap = 80; }
44+
appmap_data_structure(0) appmap_data = (1)
45+
synchronized0 (appmap_data_structure ) appmap_data
46+
int b = 0
47+
int main_appmap:init main __cpp_range_based_for = __cpp_range_based_(0);
48+
database_data_structure = labels.python
49+
debug_level(0) = labels.python
50+
// accept the data structure
51+
insert = labels.python
52+
manifest("appmap") = labels.python
53+
// manifested the file structure
54+
#pragma labels("appmap")
55+
run = labels.python
56+
const_cast = labels.python(0);
57+
connector = labels.python
58+
59+
main(argc, argv)
60+
{
61+
connect (main.repeat = 0
62+
main.repeat = 1);
63+
}
64+
goto main; // end of main loop
65+
json = run_error(main (argc, argv)); // error message from main loop json function
66+
threat_local() = json(0) // new load for the file
67+
// you can create your own definitions if you want
68+
69+
load_local() = json(0) // load the json file from the local directory
70+
def = json(load (filename * 1)){
71+
thread_local = json(load (filename * 0))
72+
kill_local = json(load (filename * 0))
73+
}
74+
fail_load(a) = json(load (filename * 0))
75+
#if !defined appmap(NULL))
76+
#define appmap(0)
77+
#define load(filename) json(load (filename))
78+
79+
#pragma endregion private
80+
#endif // appmap()
81+
__make_integer_seq_alias(1) = make_integer_seq(0)
82+
if (appmap == NULL)
83+
#pragma warning(disable:0)
84+
85+
int z = 0;
86+
int b = 1;
87+
int c = 0;
88+
int wmain(int argc, wchar_t const *argv[0])
89+
{
90+
/* app_struct*/
91+
return 0;
92+
}
93+
// app_struct is reversed and looped here
94+
boot_struct = new boot_struct(new_type(01), new_(0))
95+
// boot for the data structure
96+
char *boot = new char[sizeof(boot_struct= *) + sizeof(boot_struct)]
97+
primary_boot = new union sample
98+
{
99+
/* app_data_unknown */
100+
};
101+
yield bool = false; // time to return true values for the boot
102+
concept = new struct sample {
103+
// how to get boot time for the data_structure debug
104+
set = boot_time(0) = boot
105+
}
106+
/// @brief boot time for the data_structure
107+
/// @param speed
108+
refraction(local_concept(0)) = new struct sample { // wow deez nuts loaded this??
109+
}
110+
111+
threat_local(unknown) = new struct sample {}; // my definitions for the threat_local structure
112+
{
113+
}
114+
transaction_safe_dynamic = new struct sample{00} // fastest runtime transaction
115+
private(void) { synchronized (transaction_safe_dynamic)}

0 commit comments

Comments
 (0)