path.walk('', 1, '*.cpp', '*.h') {|fileName|
	println(fileName)
	lines = open(fileName).readlines():list
	lines = lines::replace('AScript_DeclareFunctionEx', 'AScript_DeclareFunctionAlias')
	lines = lines::replace('AScript_DeclareFunctionWithDiffUnaryEx', 'AScript_DeclareFunctionWithDiffUnaryAlias')
	lines = lines::replace('DeclareFunctionSucceedableEx', 'DeclareFunctionSucceedableAlias')
	lines = lines::replace('AScript_DeclareMethodEx', 'AScript_DeclareMethodAlias')
	lines = lines::replace('AScript_DeclareMethodPrimitiveEx', 'AScript_DeclareMethodPrimitiveAlias')
	open(fileName, 'w').dosmode(false).print(lines)
	//print(lines)
}
