Forum > Suggestions
$I or $INCLUDE : Include compiler info
joho:
Could we have %FUNC% or %FUNCTION% here too?
https://www.freepascal.org/docs-html/prog/progsu41.html
Almir.Bispo:
Yes ! You can put a full proggram there (and function too) like this:
This is on txt file
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure Hello;begin showmessage('Hello !');end;
on your main program call so:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---begin{$i fullpath\your_hello_code.txt}end;
My project (Nosql database manager) uses ILDE-Pascal like this:
{$i cql_to_pascal.txt}
and it calls all function on ILDE-Pascal
To know more :http://adltecnologia.blogspot.com.br/p/macros.html
molly:
@joho:
Did you mean like the name of the procedure or function ?
That already exists in trunk, see here it is used with %CURRENTROUTINE%
molly:
@Almir.Bispo
Excellent example on how to get frustrated with include files ;D
joho:
--- Quote from: molly on September 26, 2017, 10:28:04 am ---@joho:
Did you mean like the name of the procedure or function ?
That already exists in trunk, see here it is used with %CURRENTROUTINE%
--- End quote ---
Yes, the name of the procedure/function.
__LINE__
__FILE__
__CLASS__
__FUNC__
__CAR__
__DRINK__
and other current life variables ;)
Navigation
[0] Message Index
[#] Next page