Garry's Mod Wiki

Revision Difference

Global.DEFINE_BASECLASS#562836

<function name="DEFINE_BASECLASS" parent="Global" type="libraryfunc"> <description> A preprocessor keyword that is directly replaced with the following text: ```lua local BaseClass = baseclass.Get ``` Because this is a simple preprocessor keyword and not a function, it will cause problems if not used properly See <page>baseclass.Get</page> for more information. <warning>The preprocessor is not smart enough to know when substitution doesn't make sense, such as: table keys and strings. Running `print("DEFINE_BASECLASS")` will result in `local BaseClass = baseclass.Get`</warning>⤶ Running `print("DEFINE_BASECLASS")` is the same as `print("local BaseClass = baseclass.Get")`</warning>⤶ For more information, including usage examples, see the <page>BaseClasses</page> reference page. </description> <realm>Shared and Menu</realm> <args> <arg name="value" type="string">Baseclass name</arg> </args> </function>