Add new generation for shared_ptr
This commit is contained in:
1 parent
50163118f4
commit
8b7dfc8246
2 files changed
+12
No files matched your search
@@ -65,6 +65,9 @@ gene-list:
|
||||
gene-array:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -O3 -DNDEBUG -S tgen-marray.c && less tgen-marray.s
|
||||
|
||||
gene-shared:
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) -O3 -DNDEBUG -S tgen-shared.c && less tgen-shared.s
|
||||
|
||||
clean:
|
||||
$(RM) $(EXE) *.s *~ *.o ./a.dat
|
||||
$(RM) -rf coverage *.gcda *.gcno *.gcov all.info test.tar coverage-dir
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "m-shared.h"
|
||||
|
||||
SHARED_PTR_DEF(int, int)
|
||||
|
||||
int f(shared_int_t p)
|
||||
{
|
||||
*shared_int_ref(p) = 17;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user