This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| all: clean a.out test | |
| liblib.dylib: lib.cc unexported.txt | |
| clang++ ${CXXFLAGS} -std=c++14 -dynamiclib -single_module lib.cc -o liblib.dylib -Wall -Wl,-unexported_symbols_list,unexported.txt | |
| a.out: main.cc liblib.dylib | |
| clang++ ${CXXFLAGS} -std=c++14 main.cc -llib -L . | |
| clean: | |
| rm -f a.out liblib.dylib | |
| test: | |
| ./a.out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Disclaimer: This snippet illustrates an idea and may contain bugs. Use with caution. | |
| using UnityEngine; | |
| using System.IO; | |
| public class UIResourcesMonitor : MonoBehaviour { | |
| FileSystemWatcher m_Watcher; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Game | |
| { | |
| public struct Item | |
| { | |
| int Id; | |
| string Name; | |
| } | |
| public class Player | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Coherent.UI; | |
| using Coherent.UI.Binding; | |
| namespace MyGame | |
| { | |
| class Options | |
| { | |
| public bool SetWindowSize(int width, int height); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function GetConfigInclude(cfg) | |
| local arch = cfg.architecture | |
| local system = cfg.system | |
| if arch == 'x32' or arch == 'Win32' then | |
| arch = 'ia32' | |
| end | |
| if system == 'windows' then | |
| system = 'win' | |
| end | |
| return string.format('config/%s/%s', system, arch) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| appshell.app.getApplicationSupportDirectory = function () { | |
| return appshell.app.applicationSupportDirectory; | |
| } | |
| appshell.app.applicationSupportDirectory = '.'; | |
| engine.on('SetApplicationSupportDirectory', function (directory) { | |
| appshell.app.applicationSupportDirectory = directory; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ?GetPort@HTTPServer@@QBEGXZ PROC ; HTTPServer::GetPort, COMDAT | |
| ; _this$ = ecx | |
| mov ax, WORD PTR [ecx] | |
| ret 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FILTER_PATTERNS =*.js=doxygen.js |