mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Formatting cleanup. Ignore some generated files.
This commit is contained in:
@@ -342,13 +342,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
throw new Exception(errtext);
|
||||
}
|
||||
|
||||
if(m_scriptEngine.World.Permissions.CanCompileScript(ownerUUID, (int)l) == false) {
|
||||
// Not allowed to compile to this language!
|
||||
string errtext = String.Empty;
|
||||
errtext += ownerUUID + " is not in list of allowed users for this scripting language. Script will not be executed!";
|
||||
throw new Exception(errtext);
|
||||
}
|
||||
|
||||
if (m_scriptEngine.World.Permissions.CanCompileScript(ownerUUID, (int)l) == false) {
|
||||
// Not allowed to compile to this language!
|
||||
string errtext = String.Empty;
|
||||
errtext += ownerUUID + " is not in list of allowed users for this scripting language. Script will not be executed!";
|
||||
throw new Exception(errtext);
|
||||
}
|
||||
|
||||
string compileScript = Script;
|
||||
|
||||
if (l == enumCompileType.lsl)
|
||||
|
||||
@@ -135,8 +135,8 @@ state another_state
|
||||
[Test]
|
||||
public void TestLoneIdent()
|
||||
{
|
||||
// A lone ident should be removed completely as it's an error in C#
|
||||
// (MONO at least).
|
||||
// A lone ident should be removed completely as it's an error in C#
|
||||
// (MONO at least).
|
||||
string input = @"default
|
||||
{
|
||||
touch_start(integer num_detected)
|
||||
@@ -150,7 +150,7 @@ state another_state
|
||||
"\n public void default_event_touch_start(LSL_Types.LSLInteger num_detected)" +
|
||||
"\n {" +
|
||||
"\n LSL_Types.LSLInteger x = new LSL_Types.LSLInteger(0);" +
|
||||
"\n ;" +
|
||||
"\n ;" +
|
||||
"\n }\n";
|
||||
|
||||
CSCodeGenerator cg = new CSCodeGenerator();
|
||||
|
||||
Reference in New Issue
Block a user