Permalink
Browse files

added Craftfile and fixed calling bNewDeprecatedUseArraysInstead

  • Loading branch information...
NiklasRosenstein committed Oct 28, 2015
1 parent c2a0804 commit 2cc93243de7b0e1ec1b927fb981f02fb1b30aaa9
Showing with 24 additions and 1 deletion.
  1. +23 −0 Craftfile
  2. +1 −1 source/dynamicdata.h
@@ -0,0 +1,23 @@
# craftr_module(maxon.c4d.resedit)
append_search_path('..')
load_module('maxon.c4d')
load_module('platform')

defines = ['__C4D_64BIT']
if platform.id == 'win':
defines += ['_WINDOWS']
elif platform.id == 'mac':
defines += ['__MAC']

objects = maxon.c4d.objects(
sources = glob('source/**/*.cpp'),
options = dict(
includes = [local('res')],
defines = defines,
),
)

plugin = maxon.c4d.plugin(
filename = local('resedit'),
inputs = [maxon.c4d.library, objects],
)
@@ -3195,7 +3195,7 @@ template <class TYPE, Int32 MINBLOCK, Int32 MAXBLOCK> class DynamicBlockArray
{
Int32 o=0,b,i;

table=bNewDeprecatedUseArraysInstead TYPE[m_Allocated];
table=bNewDeprecatedUseArraysInstead<TYPE>(m_Allocated);
if (!table) return nullptr;

for (b=0;b<m_Blocks.GetCount();b++)

0 comments on commit 2cc9324

Please sign in to comment.