git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2215
1f10aa63-cdf2-0310-b900-
c93c546f37ac
/* === M A C R O S ========================================================= */
/* === M A C R O S ========================================================= */
+#define ALLOW_CLONE_NON_INLINE_CANVASES
+
struct _CanvasCounter
{
static int counter;
struct _CanvasCounter
{
static int counter;
{
name=get_id()+"_CLONE";
{
name=get_id()+"_CLONE";
+#ifndef ALLOW_CLONE_NON_INLINE_CANVASES
throw runtime_error("Cloning of non-inline canvases is not yet supported");
throw runtime_error("Cloning of non-inline canvases is not yet supported");
+#endif // ALLOW_CLONE_NON_INLINE_CANVASES
}
Handle canvas(new Canvas(name));
}
Handle canvas(new Canvas(name));