⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slsh.rc

📁 一个C格式的脚本处理函数库源代码,可让你的C程序具有执行C格式的脚本文件
💻 RC
字号:
% -*- slang -*-% This file gets loaded whenever slsh runs.  Its primary purpose is to define% some functions that are useful in scripts, and to set up some local pathsstatic define dir_exists (dir){   variable s = stat_file (dir);   if (s == NULL) return 0;   return stat_is ("dir", s.st_mode);}%!%+%\function{prepend_to_slang_load_path}%\synopsis{Prepend a directory to the load-path}%\usage{prepend_to_slang_load_path (String_Type dir)}%\description% This function adds a directory to the beginning of the interpreter's% load-path.%\seealso{append_to_slang_load_path, set_slang_load_path}%!%-public define prepend_to_slang_load_path (p){   if (dir_exists (p))     set_slang_load_path (strcat (p, ":", get_slang_load_path ()));}%!%+%\function{append_to_slang_load_path}%\synopsis{Append a directory to the load-path}%\usage{append_to_slang_load_path (String_Type dir)}%\description% This function adds a directory to the end of the interpreter's% load-path.%\seealso{prepend_to_slang_load_path, set_slang_load_path}%!%-public define append_to_slang_load_path (p){   if (dir_exists (p))     set_slang_load_path (get_slang_load_path (), ":", p);}() = evalfile ("autoload.sl");% Add local additions here

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -