From 8350acca946fc925d359f2d7c8f342cef8f5b71b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Mar 2012 23:34:37 +0000 Subject: Use dynamic type IDs for Atoms (for direct compatibility with LV2 atoms). git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4079 a436a847-0d15-0410-975c-d299462d15a1 --- test/atom_test.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'test') diff --git a/test/atom_test.cpp b/test/atom_test.cpp index 66bc79e..c36f726 100644 --- a/test/atom_test.cpp +++ b/test/atom_test.cpp @@ -6,15 +6,17 @@ using namespace Raul; int main() { - static const size_t buf_size = 9; - char buf[buf_size] = "atomtest"; + //static const size_t buf_size = 9; + //char buf[buf_size] = "atomtest"; - Atom nil_atom(); - Atom int_atom(42); - Atom float_atom(42.0f); - Atom bool_atom(true); - Atom string_atom("hello"); - Atom blob_atom("http://example.org/atomtype", buf_size, buf); + Forge forge; + + Atom nil_atom = forge.make(); + Atom int_atom = forge.make(42); + Atom float_atom = forge.make(42.0f); + Atom bool_atom = forge.make(true); + Atom string_atom = forge.alloc("hello"); + //Atom blob_atom = forge.alloc("http://example.org/atomtype", buf_size, buf); return 0; } -- cgit v1.2.1