| 2882 | } |
| 2883 | |
| 2884 | const char* getDocsLink(const char* filename, U32 lineNumber) |
| 2885 | { |
| 2886 | Vector<String> fileStringSplit; |
| 2887 | String(filename).split("source", fileStringSplit); |
| 2888 | String fileString = fileStringSplit.last(); |
| 2889 | String fileLineString = fileString + String("#L") + String::ToString(lineNumber-2); |
| 2890 | String baseUrL = String(Con::getVariable("Pref::DocURL","https://github.com/TorqueGameEngines/Torque3D/blob/development/Engine/source")); |
| 2891 | String URL = String("<a:") + baseUrL + fileLineString + String(">docs</a>"); |
| 2892 | |
| 2893 | return (new String(URL))->c_str(); |
| 2894 | } |
| 2895 | |
| 2896 | bool getDocsURL(void* obj, const char* array, const char* data) |
| 2897 | { |
nothing calls this directly
no test coverage detected