Garry's Mod Wiki

proto

A proto is a function prototype that has been described in code but not initialized as a callable object.

You can browse its bytecode and debug information with the jit.util functions, but it cannot be executed.

A proto has the same relationship with a function as classes have with its objects in OOP languages: a class can have multiple object instances, but objects are only of single class type. In the same way, protos can have multiple function instances but there is only a single proto describing those instances.

See jit.util.funck for an example.

Page Links


Special Pages


Wikis

?

Render Time: 79ms

DB GetPage 58
Generate Html 3
SaveChanges (1) 10
Render Body 0
Render Sidebar 6