If you want to port the code to clean Pascal, I suggest using related language feature, e.g. dynamic array. You can't really port that macro (even to a procedure / function), as the first parameter expected is a type name. If malloc returns Pointer, it doesn't need to be casted, the value is compatible with any pointer type.
> This means (something) is an array? pointer, despite it can be treated as array. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/using-macros-tp5711420p5711422.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal