Skip to content

Commit

Permalink
add field
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson-numerical-software committed Oct 14, 2019
1 parent 9330fff commit 89f30f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions loader.nls
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@
// License along with this program. If not, see <http://www.gnu.org/licenses/>.
// LICENCE_BLOCK_END
//=============================================================================
addmodule(fileparts(nfilename('fullpath')), 'module_skeleton');

if ~ismodule('module_skeleton')
addmodule(fileparts(nfilename('fullpath')), 'module_skeleton');
else
error(sprintf(_('Module ''%s'' already loaded.'), 'module_skeleton'));
end
//=============================================================================
3 changes: 2 additions & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"title": "Module skeleton",
"summary": "Skeleton of a valid nelson package",
"version": [1, 0, 0],
"builtin": true,
"description": "nelson's module skeleton",
"copyright": "Copyright © 2019--present Allan CORNET",
"author": {
Expand All @@ -24,6 +25,6 @@
"bugs": {
"url": "https://github.com/Nelson-numerical-software/module_skeleton/issues"
},
"homepage": "https://github.com/Nelson-numerical-software/nelson-cloud#README.md",
"homepage": "https://github.com/Nelson-numerical-software/module_skeleton/#README.md",
"dependencies": {}
}

0 comments on commit 89f30f3

Please sign in to comment.