source: doc/theses/mike_brooks_MMath/content/string/sharectx-demo.cfa @ 2377ca2

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since 2377ca2 was 8e819a9, checked in by Michael Brooks <mlbrooks@…>, 2 years ago

Mike MMath initial

  • Property mode set to 100644
File size: 322 bytes
Line 
1#include <string.hfa>
2#include <string_sharectx.hfa>
3
4void a() {}
5void b() {}
6void c() {}
7void d() {}
8void e() {}
9
10
11
12
13
14
15
16
17
18
19
20void helper2() {
21   c();
22   string_sharectx c = {NEW_SHARING};
23   d();
24}
25void helper1() {
26   a();
27   string_sharectx c = {NO_SHARING};
28   b();
29   helper2();
30   e();
31}
32int main() {
33   helper1();
34}
35
Note: See TracBrowser for help on using the repository browser.