Skip to content

Get the current callstack, containing information like functionname, filename and linenumber of the function.

License

Notifications You must be signed in to change notification settings

AutoHotkey-V2/callstack.ahk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

callstack.ahk

AutoHotkey2 ![Documentation]((https://img.shields.io/badge/Full-Documentation-blue?style=plastic&logo=readthedocs)

This library uses AutoHotkey Version 2. (Tested with AHK v2.0-beta.1 x64 Unicode)

Function to get the current callstack, containing information like functionname, filename and linenumber of the function.

Installation

In a terminal or command line navigate to your project folder and type following command:

npm install AutoHotkey-V2/callstack.ahk.git

Usage

Include export.ahk from the callstack.ahk folder into your project using standard AutoHotkey-include methods.

#Include %A_ScriptDir%\node_modules\callstack.ahk\export.ahk

foo()
return

foo(){
	cs := CallStack()
	# Print the current callstack
	for level, obj in  CallStack() {
		if (A_Index > 1 )
			str := str . " => "
		str := str . obj.function
	}
	OutputDebug str
}

For usage examples have a look at the files in the examples folder.

For more detailed documentation have a look into the full documentation

About

Get the current callstack, containing information like functionname, filename and linenumber of the function.

Resources

License

Stars

Watchers

Forks

Packages

No packages published